Google Logout implementation

#1

Good day , Im new to expo and i am having trouble with logging out google that is logged in via expo.google.loginAsync, can I ask what is the proper way to logout the google logged in account ?

Google sign-out
#2

Hi johenel! As we explain in the docs, you can use the token you get back from logInAsync to call google http api methods using fetch. It looks like the method for logging out is identitytoolkit.relyingparty.signOutUser.

Also, it depends on your app, but I think that it can be a good user experience to not explicitly log the user out: the token will expire eventually, but for as long as it lasts, your users won’t need to authorize your app over and over.

1 Like
closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.