@dheerajjha451/jwtd
v1.1.2
Published
This library provides functionality to create, decode, and validate JSON Web Tokens (JWT) using the HMAC SHA-256 algorithm. It includes three main functions: encodeJWT, decodeJWT, and validateJWT.
Downloads
17
Maintainers
Readme
JWT Encode and Decode Library
This library provides functionality to create, decode, and validate JSON Web Tokens (JWT) using the HMAC SHA-256 algorithm. It includes three main functions: encodeJWT, decodeJWT, and validateJWT.
Features Encode a payload into a JWT with optional expiration time. Decode a JWT to retrieve the payload and validate the signature. Validate a JWT to ensure its authenticity and expiration status.
Installation
Install the package via npm:
npm install @dheerajjha451/jwtd