英文:
Google OAuth Login in DRF application raise Invalid token type
问题
我在我的DRF应用程序中使用all-auth和dj-rest-auth实现了Google OAuth,但出现某种原因停止工作。
回溯显示JWT,但出于某种原因,allauth引发了这个错误:
raise DecodeError(f"Invalid token type. Token must be a {bytes}")
我尝试遵循此教程,但无法重现这种情况。
代码在此PR中。
有人遇到相同的错误吗?
英文:
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}")
I tried to follow this tutorial but couldn't reproduce the scenario.
The code is at this PR
Does anyone have the same error?
答案1
得分: 0
我将dj-rest-auth降级到版本2.2.7,然后一切都恢复正常。
英文:
I downgraded dj-rest-auth to version 2.2.7 and all go live again
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论