DEV Community

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

gandalfarcade profile image
Chris Mumford

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

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.

Thread Thread
nyamador profile image
Desmond Author

Thanks Chris⚑