Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.43 KB

README.md

File metadata and controls

43 lines (25 loc) · 1.43 KB

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"