Abu Sayem
Abu Sayem

Reputation: 518

How to implement jwt authentication using django rest auth?

I am trying to implement jwt authentication for my project. I used django-rest-auth for authentication. The official rest-auth docs says.

Add the following configuration value to your settings file to enable JWT authentication.

REST_USE_JWT = True

But its returning token with user info. not acces and refresh token.

Upvotes: 0

Views: 1027

Answers (2)

Vu Phan
Vu Phan

Reputation: 584

There are 2 packages you should refer:

Upvotes: 1

Abu Sayem
Abu Sayem

Reputation: 518

After some searching, I found the django-rest-auth project has not been developed for more than two years and it is recommended to use its fork dj-rest-auth.

Using dj-rest-auth solved my problem.

Upvotes: 0

Related Questions