summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorvanzi <me@vanzi.info>2014-04-24 10:08:01 +0200
committervanzi <me@vanzi.info>2014-04-24 10:08:01 +0200
commit90beaa320b6ca0a4765ace46b1355d9b2ebadf77 (patch)
tree4da08b944799d649fa8fd89e15fb2398223f3b65 /README.md
parent257fd34acc393520fd01cfcf47bf628835ed9402 (diff)
downloadpyjwt-90beaa320b6ca0a4765ace46b1355d9b2ebadf77.tar.gz
Added support for custom headers in encode method
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index c612b8c..3756ecc 100644
--- a/README.md
+++ b/README.md
@@ -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")