Skip to content

About JwtService utilities module based on the nestjs/jwt package Authentication using NestJS & JWT Token, JwtService and cookies as access token & refresh token.

Notifications You must be signed in to change notification settings

vinodnextcoder/nestjs-jwt-auth-cookie-mongoose

Folders and files

NameName
Last commit message
Last commit date
Dec 29, 2023
Mar 18, 2024
Dec 29, 2023
Dec 29, 2023
Feb 7, 2024
Dec 29, 2023
Dec 29, 2023
Dec 29, 2023
Dec 29, 2023
Dec 29, 2023
Dec 29, 2023
Dec 29, 2023
Jan 5, 2024
Dec 29, 2023
Feb 6, 2024
Jan 31, 2024
Jan 31, 2024
Dec 29, 2023
Dec 29, 2023

Repository files navigation

NestJS Authentication JwtService

Prettier GPL v3 License HitCount

Description

NestJS Authentication with JwtService using Bcrypt @nestjs/jwt.

Features

  1. Register
  2. Login
  3. Unit test using jest

Technologies stack:

  • Typescript, nestjs, JwtService, @nestjs/jwt
  • Bcrypt
  • mongoose

Setup

1. Install the required dependencies

$ npm install

2. Rename the .env.example filename to .env and set your local variables

$ mv .env.example .env.development

3. Start the application

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Swagger documentation for nestjs-mongoose-jwt

Running

Once the application is running you can visit [http://localhost:3000/api](http://localhost:3000/api) to see the Swagger interface.

Author

👤 Vinod

Show your support

Give a ⭐️ if this project helped you!

License

Release under the terms of MIT