#how do i logout when i authenticate with google?
9 messages · Page 1 of 1 (latest)
Close what? What is "it"?
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.
Google's login screen is automatically redirecting you?
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.
That would be Google storing a cookie about who logged in and keeping you logged in
exactly but I don't know how to keep the status to know who is logged in.
When someone logs in, what do you do on your server? Give them a JWT? Create a cookie for them?
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.