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.
Install the package via npm:
npm install @dheerajjha451/jwtd