pg-node-jwt
v1.0.0
Published
Commonly Used Utilities JavaScript Library
Downloads
8
Maintainers
Readme
Commonly Used JSON Web Token Utilities JavaScript Library
Functions
decode(encodedJwt)- Decode the JSON Web Token and return its 3 parts (header, payload, and signature) still in JSON formatextractHeader(encodedJwt)- Decode the JSON Web Token and return just its header as an objectextractSignature(encodedJwt)- Decode the JSON Web Token and return just its signature as an objectextractToken(encodedJwt)- Decode the JSON Web Token and return just its payload as an objectverify(encodedJwt)- Asynchronous function that decodes the JSON Web Token and validate it against Azure AD. Other validations coming in the future.
