[Django]-Stale token even for first time user Djoser and DRF

2👍

I know it’s too late to answer your question but I will do it just for other folks out there who might face the same issue in the future.

I had the same problem and I couldn’t find anything on the internet, which drove me to dive deep in the source code of Djoser. The issue in my case was that I changed the default behavior to change the state of the user and set user.is_active = True. This was the issue as Djoser sends the stale token error if user.is_active != False.

Hope this helps.

Leave a comment