Skip to content

NathanElshaw/Jwt-Token-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jwt Auth

Libaraies/Frameworks Used:

  • Express
  • Node.js
  • Typescript
  • JsonWebToken
  • Cookie-Parser
  • Mongoose

Prerequesits

  1. Use npm install to install all needed packages.
  2. Ensure default.ts file is property set up (jwt_private_key, jwt_public_key token_TTL and port, optional if you don't want to use a db comment or remove lines marked with remove for no db usage and leave db_key blank.)

Starting Api

  1. Run npm start to start the web server in files terminal

        Routes: Domain(http://Localhost: (your port number in default file))

            /api: Create new jwt token if none exist

            /api/get: Will display Jwt information

            /api/delete: Will delete token

            To add more add them to the Routes.ts File in /src

Flowchart

Represntation of how the api should work.

"FlowChart"

About

Rest api for JWT making

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published