Next.js Discord

Discord Forum

non_field_errors: ["State could not be found in server-side session data."]

Unanswered
Malay posted this in #help-forum
Open in Discord
I deployed my django rest framework app on Railway and the fromtend is deployed on vercel. For authentication I'm using djoser with social-auth-app-django. I'm getting above error when I make post request to /auth/o/google-oauth2/?state=''..."&code=''..." to generate tokens after getting state and code from google authorization url. But the same code work in my local dev environment perfectly fine.

Any guess How to fix this issue?

0 Replies