Google Logout implementation

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

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

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