djangodjango-rest-frameworkjwtdjango-allauthdj-rest-auth

Google OAuth Login in DRF application raise Invalid token type


I had implemented Google OAuth in my DRF application using all-auth and dj-rest-auth, but for some reason stop working.

Traceback shows the JWT, but for some reason, allauth raise this

  raise DecodeError(f"Invalid token type. Token must be a {bytes}")

Traceback_1

Traceback_2

I tried to follow this tutorial but couldn't reproduce the scenario.

The code is at this PR

Does anyone have the same error?


Solution

  • I downgraded dj-rest-auth to version 2.2.7 and all go live again