Skip to content

Commit

Permalink
Update usage.rst (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
guneybilen committed Jan 28, 2022
1 parent a03b36c commit 86820d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.rst
Expand Up @@ -8,7 +8,7 @@ Encoding & Decoding Tokens with HS256
>>> import jwt
>>> key = "secret"
>>> encoded = jwt.encode({"some": "payload"}, key, algorithm="HS256")
>>> encoded = jwt.encode({"some": "payload"}, key, algorithms="HS256")
>>> print(encoded)
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
>>> jwt.decode(encoded, key, algorithms="HS256")
Expand Down

0 comments on commit 86820d3

Please sign in to comment.