c9da88c4bb
Options fix
2022-06-22 19:11:53 +02:00
ZèD
7198501a40
Destructure payload from decode function properly
...
The decode function returns an object containing a header and payload properties. Assigning the whole object to payload fails nbf and exp checks on verify JWT as those properties not found in decode return object directly. Instead, destructure payload property from decode return data that contains those values and check them correctly.
Signed-off-by: ZèD <imzihad@gmail.com >
2022-06-22 12:06:50 +06:00
695e1c0dfe
.decode() syntax change to support headers
2022-06-04 17:23:53 +02:00
64da4c625f
.verify() bugfix
2022-06-04 14:53:59 +02:00
44329617de
Fix .verify() and add testing
2022-06-04 14:18:06 +02:00
Toby Schneider
e7964b63c2
Merge pull request #9 from alaister/main
...
Add support for JWT header
2022-06-01 20:10:51 +02:00
43879de15e
Implement throwError option for .verify().
2022-06-01 15:09:25 +02:00
3c5d178fec
Fix timestamp check
2022-04-11 02:20:14 +02:00
Alaister Young
f12cafd9d0
Add support for JWT header
2022-03-01 10:21:32 +11:00
Toby Schneider
bc7fa845ed
Merge pull request #7 from plesiv/add-rsa-algorithm
...
Add support for RSA algorithm
2022-02-27 15:56:13 +01:00
Chris Johnson
9c52217ca2
Fix constructor error
2022-02-24 09:17:40 +00:00
Zoran Plesivcak
5160cfa416
Add support for RSA algorithm
2022-02-13 23:58:16 +00:00
4d4cf316d0
Change error message
2021-11-02 13:56:12 +01:00
e244ff0618
Added more algorithms, keyid and did some cleanup
2021-10-27 01:22:01 +02:00
8d9f70ca36
Added nbf and exp support
2021-05-23 22:41:35 +02:00
6e0ce1cf82
Renamed alg to algorithm
2021-05-01 16:21:27 +02:00
4ed24b18c5
Removed unused variable
2021-05-01 15:54:49 +02:00
6a17fb6be2
Initial commit
2021-02-04 12:02:42 +01:00