Today, I developed a simple yet functional Node.js application that decodes JWT tokens and verifies their signatures. This application showcases my ability to work with Node.js and JWT tokens.
This application provides a user-friendly interface to input JWT tokens and get their decoded details. It also verifies the signatures of the tokens.
To run this application locally for development or testing, follow these steps:
Ensure you have Node.js and npm installed on your machine. If not, download and install them from here.
- Clone the repository:
git clone https://github.com/chadgauth/jwt-token-details.git
- Install the dependencies
npm install
- Create a .env file in the root directory of the project and add the following:
SECRET=your_secret_key
Replace 'your_secret_key' with your own secret key.
- Start the server
npm start
To decode a JWT token, make a GET request to '/tokenDetails' with the token in the 'x-access-token' header.
- Chad Gauthier
This project is licensed under the ISC License and is free for use, modification, and distribution.