Hey everyone!
So, I’ve been working on this web app and got stuck on the whole *javascript how to web app sign out* thing. Like, I wanna make sure the logout is secure, ya know?
I’ve seen some ppl just clear localStorage or sessionStorage, but idk if that’s enough. Should I also invalidate the token on the server side? Or is there a better way?
Also, what about redirecting users after logout? Should it be instant or with a lil delay?
Any tips or best practices for *javascript how to web app sign out* would be super helpful! Thx in advance!
P.S. Sorry if this has been asked before, I’m still kinda new to this stuff. 😅
So, I’ve been working on this web app and got stuck on the whole *javascript how to web app sign out* thing. Like, I wanna make sure the logout is secure, ya know?
I’ve seen some ppl just clear localStorage or sessionStorage, but idk if that’s enough. Should I also invalidate the token on the server side? Or is there a better way?
Also, what about redirecting users after logout? Should it be instant or with a lil delay?
Any tips or best practices for *javascript how to web app sign out* would be super helpful! Thx in advance!
P.S. Sorry if this has been asked before, I’m still kinda new to this stuff. 😅
