DEV Community

Discussion on: Build a complete warehouse management system with React and Django.

Collapse
 
gandalfarcade profile image
Chris Mumford

Definitely avoid storing your token in LocalStorage. Using a HttpOnly cookie might better serve you.

owasp.org/www-community/HttpOnly

I don't know the full context of your token needs but I would usually recommend using a JWT for granting access to an API. For most use cases they are a simple but effective solution.

blog.logrocket.com/jwt-authenticat...

Thread Thread
 
nyamador profile image
Desmond

Thanks Chris⚑