Django and nextjs shared authentication

I am building a new front end with nextJs for my Django App. I have been splitting the development to keep all the dashboard running on Django, while the rest runs on nextJs.

nextJs is running on the existing django will be running on

I have setup all the Rest authentication for NextJs and is working fine.

Now what I'm trying to achieve is when you login from you don't need to authenticate to the dashboard and reuse the same authentication.

Django seems to have some cookie authentication and I'm using JTW for NextJS.

What would be my options to solve this dilemma?

Back to Top