Skip to content

Fix small mistake on HMAC jwk example #339

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

Merged
merged 1 commit into from
May 28, 2025
Merged

Conversation

leandropls
Copy link
Contributor

>>> decoded_sig = base64url_decode(encoded_sig)
Traceback (most recent call last):
(...)
  File "(...)/python3.11/site-packages/jose/utils.py", line 76, in base64url_decode
    input += b"=" * (4 - rem)
TypeError: can only concatenate str (not "bytes") to str
>>> decoded_sig = base64url_decode(encoded_sig.encode())
>>>

```python
>>> decoded_sig = base64url_decode(encoded_sig)
Traceback (most recent call last):
(...)
  File "(...)/python3.11/site-packages/jose/utils.py", line 76, in base64url_decode
    input += b"=" * (4 - rem)
TypeError: can only concatenate str (not "bytes") to str
>>> decoded_sig = base64url_decode(encoded_sig.encode())
>>>
```
@ningen1
Copy link

ningen1 commented Dec 4, 2023

Please fix this...
so many simple issues with this library

@asherf asherf closed this May 28, 2025
@asherf asherf reopened this May 28, 2025
@asherf asherf merged commit 0b4af73 into mpdavis:master May 28, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants