#how do i logout when i authenticate with google?

9 messages · Page 1 of 1 (latest)

meager current
#

after I am already authenticated, how can I close it?

silver perch
#

Close what? What is "it"?

meager current
#

I'm already authenticated, and after that every time I start it redirects me, everything is fine until then but I don't understand how it keeps the status if I don't see it save something in the cookie or localstorage.

silver perch
#

Google's login screen is automatically redirecting you?

meager current
#

yes, the first time it asks me for email and password and then it redirects me no matter how many times I enter the endpoint to log in it redirects me but I don't know how it does it I don't see that it saves anything in cookie or localstorage or anywhere else.

silver perch
#

That would be Google storing a cookie about who logged in and keeping you logged in

meager current
#

exactly but I don't know how to keep the status to know who is logged in.

silver perch
#

When someone logs in, what do you do on your server? Give them a JWT? Create a cookie for them?

meager current
#

nothing only if it does not exist in the db I return an error, otherwise I show it and that's it, but I don't do anything else or save anything.