29aa3b0198
Options fix
2022-06-22 19:11:53 +02:00
ZèD
1e4df43a5d
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
d660b1740f
.decode() syntax change to support headers
2022-06-04 17:23:53 +02:00
03cb9e1b92
.verify() bugfix
2022-06-04 14:53:59 +02:00
97c12f7bc5
Fix .verify() and add testing
2022-06-04 14:18:06 +02:00
Toby Schneider
031f0b757a
Merge pull request #9 from alaister/main
...
Add support for JWT header
2022-06-01 20:10:51 +02:00
9e66d3bac0
Implement throwError option for .verify().
2022-06-01 15:09:25 +02:00
afb9f58c25
Fix timestamp check
2022-04-11 02:20:14 +02:00
Alaister Young
02d24b6709
Add support for JWT header
2022-03-01 10:21:32 +11:00
Toby Schneider
153f5943e5
Merge pull request #7 from plesiv/add-rsa-algorithm
...
Add support for RSA algorithm
2022-02-27 15:56:13 +01:00
Chris Johnson
a7e2cf0cce
Fix constructor error
2022-02-24 09:17:40 +00:00
Zoran Plesivcak
1539d677c9
Add support for RSA algorithm
2022-02-13 23:58:16 +00:00
8fcf682c9c
Change error message
2021-11-02 13:56:12 +01:00
9ab38705b6
Added more algorithms, keyid and did some cleanup
2021-10-27 01:22:01 +02:00
4438eb30a5
Added nbf and exp support
2021-05-23 22:41:35 +02:00
d12423a719
Renamed alg to algorithm
2021-05-01 16:21:27 +02:00
b50d3a40d4
Removed unused variable
2021-05-01 15:54:49 +02:00
9d94422536
Initial commit
2021-02-04 12:02:42 +01:00