2.0.10 • Published 4 years ago

jwt-eoeapiutils-idds-edu v2.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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)

ParametersDescriptionRequired
jwtstringJWT stringYes
keyPublic key for verifying the jwtYes

jwtstring

JWS JWT string

key

Public key for verifying

Validating the JWS JWT

jwtvalidator(jwtstring, key, validationLevel, audArr)

ParametersDescriptionRequired
jwtstringJWT stringYes
keyPublic key for verifying the jwtYes
validationLevelLevel of validationNo
audArraudience arrayNo

JWTString

JWS JWT string

Key

Public key for verifying

validationLevel

Level of validation that needs to be performed. Default level is 1.

Validation LevelDescription
1Validate if the JWT has expired
2Validate 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
3Validate 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.

2.0.10

4 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.6

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago