summaryrefslogtreecommitdiff
path: root/docs/usage.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/usage.rst')
-rw-r--r--docs/usage.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/usage.rst b/docs/usage.rst
index 0c6794b..e40c679 100644
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -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")