Hi guys . I’m using JWT in my react app and I’m a little bit confused about either storing my token in Localstorage or Cookie? What is the difference between these 2 and what do you recommend ?
@bwclovisMay 19.2022 — #Depends... do you need it for JUST this session? Session Store. Multiple sessions? LocalStore. Need it for the server and / or want to have better control over when it expires? Cookie (There ways to clear out local programmatically as well but.)
reply?
×
Success!
Help @Allo spread the word by sharing this article on Twitter...