jwt-eoeapiutils-idds-edu v2.0.10
Overview
You can validate and verify JWS JWT using this package
- Verify the JWT by passing the JWT string and the key.
- Validate the JWT for nbf, exp and audience.
Usage notes
Verifying the JWS JWT
jwtverifier(jwtstring, key)
| Parameters | Description | Required |
|---|---|---|
| jwtstring | JWT string | Yes |
| key | Public key for verifying the jwt | Yes |
jwtstring
JWS JWT string
key
Public key for verifying
Validating the JWS JWT
jwtvalidator(jwtstring, key, validationLevel, audArr)
| Parameters | Description | Required |
|---|---|---|
| jwtstring | JWT string | Yes |
| key | Public key for verifying the jwt | Yes |
| validationLevel | Level of validation | No |
| audArr | audience array | No |
JWTString
JWS JWT string
Key
Public key for verifying
validationLevel
Level of validation that needs to be performed. Default level is 1.
| Validation Level | Description |
|---|---|
| 1 | Validate if the JWT has expired |
| 2 | Validate if the JWT has expired and the process require processing of the "nbf" claim. This requires that the current date/time MUST be after or equal to the not-before date/time listed in the "nbf" claim |
| 3 | Validate if the JWT has expired and the process require processing of the "nbf" claim. This requires that the current date/time MUST be after or equal to the not-before date/time listed in the "nbf" claim. |
audArr
audience array. This identifies all the recipients that the JWT is intended for.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago