Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Updated PyJWT version to 2.6.0 #152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AnuragBalhra
Copy link

As mentioned in the issue here: #147
The PyJWT dependency used in current version of FlaskJWT seems to be using an older version of PyJWT that is causing following error:
ImportError: cannot import name 'Mapping' from 'collections'

Upgraded the PyJWT version to use version 2.6.0 to resolve this issue

AnuragBalhra and others added 3 commits April 15, 2023 18:31
As mentioned in the issue here: pallets-eco#147
The PyJWT dependency used in current version of FlaskJWT seems to be using an older version of PyJWT that is causing following error:
ImportError: cannot import name 'Mapping' from 'collections' 

Upgraded the PyJWT version to use version 2.6.0 to resolve this issue
Python 3 doesn't support str.decode method. 
So, trying to decode access_token in python 3 raises following error:
AttributeError: 'str' object has no attribute 'decode'

Added try except block to prevent that.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant