0

I am building authentication with:

  • Backend: Django (DRF) + Djoser for JWT authentication.
  • Frontend: Next.js using Auth.js (NextAuth) for authentication.

I want users to log in via Next.js, authenticate with Djoser’s jwt/create/, and store/manage tokens properly. However, the Auth.js docs are unclear, and I’m struggling with:

  1. Handling JWT token storage and refreshing in NextAuth.js.
  2. Making authenticated API requests from the frontend.
  3. Implementing logout properly.

0

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.