diff options
author | guneybilen <guneybilen@yahoo.com> | 2022-01-28 08:11:57 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 19:11:57 +0600 |
commit | 86820d338ddbbfa48f60730f00579a26445f17e6 (patch) | |
tree | 283a34976690989fbcff3a30a4176ba1858c9f83 | |
parent | a03b36cd9bf067c232f61f8445b09d24e2732ef6 (diff) | |
download | pyjwt-86820d338ddbbfa48f60730f00579a26445f17e6.tar.gz |
Update usage.rst (#727)
-rw-r--r-- | docs/usage.rst | 2 |
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") |