Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googleLogout function #4

Closed
aetrnm opened this issue May 14, 2022 · 1 comment
Closed

googleLogout function #4

aetrnm opened this issue May 14, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@aetrnm
Copy link

aetrnm commented May 14, 2022

How exactly is this function supposed to work?
In source code I see only:
declare function googleLogout(): void;

@MomenSherif
Copy link
Owner

MomenSherif commented May 14, 2022

The new google SDK does not maintain your web app's signed-in status or session state.
The signed-in status of a Google Account, and your app's session state and signed-in status are distinct, separate concepts.
From google docs

So to log out users from your app, you don't need to call anything from the google side, log them out by updating your state,

the only time you need to call it, If you are using automatic auto_select prop (true) sign-in in google with one tap. google docs.

When users sign out of your website, they can be directed to a page where a Google One Tap prompt is automatically displayed. For this setup, auto-selection must be prohibited. Otherwise, the user is automatically signed in again, which leads to a dead-loop UX.

implementation

@MomenSherif MomenSherif self-assigned this May 14, 2022
@MomenSherif MomenSherif added the question Further information is requested label May 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants