Description
Hello,
I was setting up a new project with dj-rest-auth and for some reason I was running into JSONDecodeError at /auth/google/callback/
. I set it up identically to a previous project but was still getting this error. When I changed my requirements.txt file from
dj-rest-auth==7.0.1
django-allauth==65.3.1
to
dj-rest-auth==7.0.0
django-allauth==0.61.1
everything started working again.
The JSONDecodeError is because the call to the google_login view is resulting in a Django error page in the form of HTML, not JSON. Looking into the HTML that the google_login view is responding with I was able to see that the root cause is TypeError
OAuth2Client.__init__() got multiple values for argument 'scope_delimiter'
, which is clearly not something that is affected by my implementation.
Please share the correct version numbers to use and also where the documentation may be adjusted to address this. Please let me know if you'd like any additional details, thanks!