A similar question has already been asked, and the problem was in gapi.auth.signout () does not work in localhost: gapi.auth.signOut (); not working I'm lost
But it worked perfectly on a real website, until it suddenly, without changes at my end. Now he will not sign the user, so if they leave my site, their Google authentication is still alive. Here is an example of code that I think should not say that the user is still signed:
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); });
This seems completely wrong and unsafe. I tested my original code in the past and it worked correctly, so I think a recent regression in the Google API may happen.
Guy goldstein
source share