DEV Community

Discussion on: Why is Django REST Framework lying to me?

Collapse
 
wilkmoura profile image
Wilkinson Tavares

I appreciate your piece on this,

I'm building a system using Django/DRF as backend and React Js as frontend.
The backend uses an already existent database, user and auth models.
Figure out auth in SPA is tricky... store tokens in localstorage or sessionstorage isn't the safest practice but is the fastest to get it done, imho this is why many devs do it this way.

I totally agree with you, implement the session cookie should be easy as it seems to me the right solution for this problem.

Collapse
 
rhymes profile image
rhymes

Yeah, probably if they lowered the bar on how to use standard sessions they would be used more. A lot of doc is also JWT first which doesn't always help.