django-cognito-jwt icon indicating copy to clipboard operation
django-cognito-jwt copied to clipboard

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

Open MobeenAshraf opened this issue 4 years ago • 3 comments

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.

MobeenAshraf avatar Dec 29 '20 16:12 MobeenAshraf

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.

ebk46 avatar Jan 02 '21 15:01 ebk46

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

TannyS26 avatar Sep 02 '21 02:09 TannyS26

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

MichelML avatar Dec 10 '21 19:12 MichelML