diff options
author | vanzi <me@vanzi.info> | 2014-04-24 10:08:01 +0200 |
---|---|---|
committer | vanzi <me@vanzi.info> | 2014-04-24 10:08:01 +0200 |
commit | 90beaa320b6ca0a4765ace46b1355d9b2ebadf77 (patch) | |
tree | 4da08b944799d649fa8fd89e15fb2398223f3b65 /README.md | |
parent | 257fd34acc393520fd01cfcf47bf628835ed9402 (diff) | |
download | pyjwt-90beaa320b6ca0a4765ace46b1355d9b2ebadf77.tar.gz |
Added support for custom headers in encode method
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,6 +18,10 @@ Usage import jwt jwt.encode({"some": "payload"}, "secret") +Additional headers may also be specified. + + jwt.encode({"some": "payload"}, "secret", headers={"kid": "230498151c214b788dd97f22b85410a5"}) + Note the resulting JWT will not be encrypted, but verifiable with a secret key. jwt.decode("someJWTstring", "secret") |