React-google-login: Logout built in function

Created on 10 Jan 2020  路  3Comments  路  Source: anthonyjgrove/react-google-login

Hi,

Is there any built in function to logout the current authenticated user in google?
because right now I see only built in component from react-google-login:

clientId={GOOGLE_CLIENT_ID}
onLogoutSuccess={console.log} />

Thanks.

Most helpful comment

exported hooks are published in v5.1.0

All 3 comments

I noticed that in version 5.0.8 hooks are available (to login and logout). But in the NPM the latest version is 5.0.7. When are you (@anthonyjgrove and @erikmjohnson ) planning to update npm repo?

PING! I'm really interested in getting access to the signOut function as well from the new useGoogleLogin hook from 5.0.8. Currently running the npm 5.0.7.

I essentially need to sign out users on my onSuccess response callback if that Google account is not associated with any of the users in my app. Currently users just get a white pop up if they signed in with the wrong account, not allowing them to choose a different Google account afterwards.

exported hooks are published in v5.1.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rabashani picture rabashani  路  7Comments

MitulGedeeya picture MitulGedeeya  路  3Comments

anthonyjgrove picture anthonyjgrove  路  8Comments

rishipr picture rishipr  路  7Comments

scandinaro picture scandinaro  路  5Comments