DEV Community

Discussion on: Is there a way I can use Django default auth with React with them both decoupled?

Collapse
 
belhassen07 profile image
Belhassen Chelbi

There's djang-rest-framework-simplejwt which is maintained, the problem is that they return the refresh and the access in a json object where the refresh should be in an http only cookie. I'm not sure I'd want to use jwt and honestly I'm new to Django so I can't customize it easily.
For the Token auth(not jwt) the problem, is the same, where do we store it.

Collapse
 
itayb1 profile image
itayb1

Managed to create a view for authentication of users while using built-in SessionAuthentication.

See snippet in reddit.com/r/django/comments/e91gn...