Skip to content

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

Contributing

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages