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
base64url_decode TypeError: must be str, not bytes #74
Comments
In python 3, you have to encode your input to bytes first, because implicit conversion between str and byte is no longer possible. Try: |
The append operation within the base64 decode functions is appending bytes not strings resulting in byte arrays being sent to the python base64 functions and failing. using the encode function on the input strings for padding does not help the root issue. An example can be seen here: Line 88 in e31416a
|
The internal functions used for padding will void this fix. See comment below. |
Example copied from docs:
Environment:
3.6.2
1.4.0
The text was updated successfully, but these errors were encountered: