mpdavis / python-jose

A JOSE implementation in Python
MIT License
1.55k stars 238 forks source link

Fix small mistake on HMAC jwk example #339

Open leandropls opened 12 months ago

leandropls commented 12 months ago
>>> 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 commented 11 months ago

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