We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As of version 2.0, the return type for jwt.encode is string instead of byte string, causing encode and decode tests to fail.
The text was updated successfully, but these errors were encountered:
After reading this I've added these 3 lines to the end of encode_access_token in models.user.py
encode_access_token
models.user.py
token = jwt.encode(payload, key, algorithm="HS256") if isinstance(token, str): token = token.encode("UTF-8")
which resolved this issue for me. Perhaps it has introduced new issues, hope not!
Sorry, something went wrong.
No branches or pull requests
As of version 2.0, the return type for jwt.encode is string instead of byte string, causing encode and decode tests to fail.
The text was updated successfully, but these errors were encountered: