vue-google-api
vue-google-api copied to clipboard
this.$gapi.isSignedIn() returns true after signOut() promise resolved
this.$gapi.signOut()
.then(() => {
this.$gapi.isSignedIn().then((result) => console.debug(result));
});
result: true
This is breaking my program flow because the login page (which I redirect to immediately after signing out) executes this.$gapi.isSignedIn().then((result) => if (result) <redirect to other page>);
, and since that receives true
as well at first, it redirects straight back to the main page while the user has already been disconnected and all subsequent API calls (which the main page executes) fail.