DEV Community

Discussion on: Should save acees token in local storage?

Collapse
 
reegodev profile image
Matteo Rigon

If you talk to a stateless api there is no alternative than to save them to local storage. Although the posts Eduardo linked are correct, if you read through the comments you'll find that there is really no other ways for SPAs to keep someone logged in. Just make sure your access tokens are short-lived and that they can be revoked