Skip to content

Commit 0b4af73

Browse files
authored
Update index.rst (#339)
```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()) >>> ```
1 parent 962e1c7 commit 0b4af73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/jwk/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Verifying token signatures
2626
>>> key = jwk.construct(hmac_key)
2727
>>>
2828
>>> message, encoded_sig = token.rsplit('.', 1)
29-
>>> decoded_sig = base64url_decode(encoded_sig)
29+
>>> decoded_sig = base64url_decode(encoded_sig.encode())
3030
>>> key.verify(message, decoded_sig)
3131
3232

0 commit comments

Comments
 (0)