vue-google-api icon indicating copy to clipboard operation
vue-google-api copied to clipboard

this.$gapi.isSignedIn() returns true after signOut() promise resolved

Open Pwuts opened this issue 5 years ago • 0 comments

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.

Pwuts avatar Feb 05 '20 15:02 Pwuts