Skip to content

renanholler/JWT-Token-Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Structure

The project is composed of the following files:

  1. generateSignature.ts: Contains the generateSignature function responsible for generating the token signature.
  2. sign.ts: Exports the sign function, which creates a signed JWT token based on the provided data.
  3. verify.ts: Exports the verify function, which validates and decodes a JWT token.

How to Use

Installation

Make sure you have Node.js and TypeScript installed. Clone the repository and install the dependencies:

git clone https://github.com/renanholler/JWT-Token-Implementation.git
cd JWT-Token-Implementation
npm install

About

Sample project demonstrating the generation, signing, and verification of JWT tokens using TypeScript.

Topics

Resources

Stars

Watchers

Forks

Contributors