Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WrappedAttributeError at / module 'jwt' has no attribute 'ExpiredSignature' #34

Open
MobeenAshraf opened this issue Dec 29, 2020 · 3 comments

Comments

@MobeenAshraf
Copy link

I am getting the following error (Presumable after token is Expired):

WrappedAttributeError at /api/ module 'jwt' has no attribute 'ExpiredSignature'

The package was working perfectly for 2-3 months but this has started appearing recently.

@ebk46
Copy link

ebk46 commented Jan 2, 2021

This is because of an update to pyjwt which is an underlying dependency. There were breaking changes and this package is unfortunately not pinned to a particular version. It should be easy enough to fix but the last issue that was resolved in this project was 6 months ago so I wonder if it's even an active project anymore.

The fastest way to fix this for now would be to specify pyjwt==1.7.1 in your project's dependencies, and that should be used by django-cognito-jwt.

@TannyS26
Copy link

TannyS26 commented Sep 2, 2021

you can use the files (validator.py and backend.py) directly in your project without installing this library and replace the ExpiredSignature with ExpiredSignatureError

@MichelML
Copy link
Contributor

@mikedebock you can also close this issue it was solved in #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants