gothinkster / flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
https://realworld.io/
MIT License
897 stars 308 forks source link

Fixes PyJWT and Flask-JWT-Extended version incompatiblity #42

Open LuisCor opened 3 years ago

LuisCor commented 3 years ago

Running the current version of the projects results in the following error: ImportError: cannot import name 'jwt_optional' from 'flask_jwt_extended' (/opt/homebrew/lib/python3.9/site-packages/flask_jwt_extended/__init__.py)

This is because of an issue between Flask-JWT-Extended and PyJWT versions documented at :https://github.com/vimalloc/flask-jwt-extended/issues/204

The pull request sets Flask-JWT-Extended and PyJWT to versions 3.13.1 and 1.6.1 respectively, fixing the issue.