pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 178 forks source link

Unable to deocde access token in Python 3 #154

Open AnuragBalhra opened 1 year ago

AnuragBalhra commented 1 year ago

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