Skip to content

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

@Pwuts

Description

@Pwuts
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions