我正在构建一个连接到非Google服务的gmail加载项。我想在使用Oauth2退出第三方服务后更改视图。谁能建议我一个解决方案?看待。
只需创建一个处理注销的函数,如:
function handleSignOutClick(event) { gapi.auth2.getAuthInstance().signOut(); window.location.href = '/path'; //relative to domain }