You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest version of PyJWT (2.10.0) introduces changes that prevent the use of non-string identities in create_access_token. This behavior is inconsistent with previous versions and breaks existing implementations that rely on Flask-JWT-Extended's flexibility to handle non-string identity types.
Steps to Reproduce:
Install PyJWT 2.10.0.
Use create_access_token with a non-string identity (e.g., an integer).
Suggested Fixes:
Update the Flask-JWT-Extended dependencies to pin PyJWT to version 2.9.0 in the short term.
Update the relevant documentation (e.g., API documentation) to clarify that only string identities are supported with PyJWT 2.10.0.
Setting options={"verify_sub": False} that prevents the InvalidSubjectError