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
First of all, thank you for your package—it has been incredibly useful to me!
I encountered an issue in the latest version due to a breaking change in the identity parameter for create_access_token. Specifically, the following code:
#562 has all the information on this, but the tl;dr is that was is caused by an underlying change to the PyJWT library, and in flask-jwt-extended version 4.7.1, you can now set the JWT_VERIFY_SUB configuration option to restore the old behavior and allow for non string values to work for the sub key without breaking.
Hello,
First of all, thank you for your package—it has been incredibly useful to me!
I encountered an issue in the latest version due to a breaking change in the
identity
parameter forcreate_access_token
. Specifically, the following code:Now results in the last line (
jsonify({"error": "Decode failed"}), 401
) being executed.I believe one of the following changes could address the issue:
decode_token
for dictionaries asidentity
.create_access_token
raise an error when a dictionary is passed asidentity
.Thanks for your time and for considering this!
The text was updated successfully, but these errors were encountered: