Skip to content

Commit 5fbc484

Browse files
vimallocjpadilla
authored andcommitted
Prevent needing to scroll on jwt.decode example
1 parent ffa8458 commit 5fbc484

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/index.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ Example Usage
2222
2323
>>> import jwt
2424
25-
>>> jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')
25+
>>> encoded_jwt = jwt.encode({'some': 'payload'}, 'secret', algorithm='HS256')
26+
>>> encoded_jwt
2627
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg'
2728
28-
>>> jwt.decode('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg', 'secret', algorithms=['HS256'])
29+
>>> jwt.decode(encoded_jwt, 'secret', algorithms=['HS256'])
2930
{'some': 'payload'}
3031
3132
See :doc:`Usage Examples <usage>` for more examples.

0 commit comments

Comments
 (0)