-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with PyJWT 2.10.0: Non-string identities unsupported in create_access_token #556
Comments
Thanks for the report! I am going to update the documentation and release a new version outlining the difference, but it looks like per the JWT spec |
4.7.0 has been published, which now documents that If you have issues making this change in your applications for whatever reason feel free to let me know. I think it will hopefully be pretty straightforward, but if you run into any unexpected complexities I would be happy to try and help resolve them with you. Cheers! |
@vimalloc : Thank you for your response and quick reaction ! The current change is perfectly understandable but not very practical. For us, it would require significant changes in our code to switch to string-type identifiers because we rely a lot on Would it not be possible to either:
|
Some options you could consider:
Hope that helps! |
This is required because of vimalloc/flask-jwt-extended#556
Description
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:
create_access_token
with a non-string identity (e.g., an integer).Suggested Fixes:
References:
The text was updated successfully, but these errors were encountered: