Google API ad stopped working

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.

+7
oauth google-plus google-oauth google-api
source share

No one has answered this question yet.

See similar questions:

thirteen
gapi.auth.signOut (); not working I'm lost

or similar:

778
Is there a link to the "latest" jQuery library in the Google API?
544
How does OAuth 2 protect against things like replay attacks using a security token?
415
Alternative google finance api
42
How to use Google Plus to log in with multiple actions?
nine
gapi.auth.signOut () stops working without changes
2
What do I need to change for the Google+ API and disable OAuth?
one
Authenticated Google User Authentication "Work Account"
0
Retrieving company, phone numbers and country when logging in with Google+ using python social auth
0
How can I fill in my own application credentials using the token created by the web application in the Google API?
0
google api with java

All Articles