0

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.

2 Answers 2

1

There are 2 packages you should refer:

Sign up to request clarification or add additional context in comments.

1 Comment

please add django-rest-framework-simplejwt instead of django-rest-framework-jwt as it Is not maintained anymore.
0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.