Commit 3507d27
authored
fix(isJWT): fix validation issue in isJWT function (#2217)
* Update isJWT.js
fix: Ensure isJWT returns false for 2 part invalid JWT tokens
Previously, the isJWT function would return true for 2 part invalid JWT tokens. This has been fixed by updating the isJWT function to return false for such tokens.
* Update validators.test.js
Added test case for validating JSON web tokens (JWT)
* Update validators.test.js
Removed trailing spaces
* Update validators.test.js
Refactor tests in isjwt and remove redundant test case
* Update validators.test.js
Removed redundant test in isJWT1 parent 63b1e4d commit 3507d27
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4720 | 4720 | | |
4721 | 4721 | | |
4722 | 4722 | | |
4723 | | - | |
4724 | 4723 | | |
4725 | 4724 | | |
4726 | 4725 | | |
| 4726 | + | |
| 4727 | + | |
4727 | 4728 | | |
4728 | 4729 | | |
4729 | 4730 | | |
| |||
0 commit comments