Skip to content

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.

License

Notifications You must be signed in to change notification settings

Dheerajjha451/packagejwt

Repository files navigation

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 

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published