Google API注销已停止工作

Guy*_*ein 7 oauth google-api oauth-2.0 google-plus google-oauth

类似的问题已经被问到,问题是gapi.auth.signout()在localhost中不起作用:gapi.auth.signOut(); 不工作我迷路了

但它在一个真实的网站上运行良好,直到突然,我的结果没有变化.它现在不会签署用户,所以如果他们退出我的网站,他们的Google身份验证仍然有效.下面是一些示例代码,我认为应该不是说用户仍然签署了:

 gapi.auth.authorize({ 'client_id': CLIENT_ID, 'scope': SCOPES, 'immediate': false, cookie_policy: 'single_host_origin'}, function (authResult) {
    gapi.auth.signOut();
    setTimeout(function() {
        gapi.auth.authorize({ 'client_id': CLIENT_ID, 'scope': SCOPES, 'immediate': true, cookie_policy: 'single_host_origin'}, function (authResult) {
            if (authResult && !authResult.error)
                alert("Still signed in");
        })
    }, 5000);
 });
Run Code Online (Sandbox Code Playgroud)

这似乎是完全错误和不安全的.我过去测试了我的原始代码并且它运行正常,所以我认为最近Google API可能会出现回归.