labd / django-cognito-jwt

An Authentication backend for Django Rest Framework for AWS Cognito JWT tokens
MIT License
177 stars 59 forks source link

ImportError: cannot import name 'RSAAlgorithm'. #36

Open jdister1 opened 3 years ago

jdister1 commented 3 years ago

ImportError: Could not import 'django_cognito_jwt.JSONWebTokenAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'RSAAlgorithm'.

Just started getting this a few days ago, wondering if anyone else has experienced the same thing?

I saw in another issue (https://github.com/labd/django-cognito-jwt/issues/34) that an update to PyJWT was affecting this library and to downgrade it to 1.7.1, but that didn't work for me.