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

Unable to deocde access token in Python 3 #154

Open
AnuragBalhra opened this issue Apr 22, 2023 · 0 comments
Open

Unable to deocde access token in Python 3 #154

AnuragBalhra opened this issue Apr 22, 2023 · 0 comments

Comments

@AnuragBalhra
Copy link

Python version:
Python 3.10.9

Python 3 doesn't have str.decode method
So I'm getting the following error while using flask-jwt with newer versions of python.

return jsonify({'access_token': access_token.decode('utf-8')})
AttributeError: 'str' object has no attribute 'decode'

Issue occours in line #132

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

No branches or pull requests

1 participant