https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
About JwtService utilities module based on the nestjs/jwt package Authentication using NestJS & JWT Token, JwtService and cookies as access token & refresh token.
https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
boilerplate docker helmet husky jwt-cookie jwt-refresh-token jwtservice nest-js nestjs-api nestjs-backend nestjs-boilerplate nestjs-docker nestjs-env nestjs-mongoose nestjs-starter-template nestjs-typescript nodemailer rest-api swagger winston
Last synced: 6 months ago
JSON representation
About JwtService utilities module based on the nestjs/jwt package Authentication using NestJS & JWT Token, JwtService and cookies as access token & refresh token.
- Host: GitHub
- URL: https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose
- Owner: vinodnextcoder
- Created: 2023-12-29T13:04:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T06:52:36.000Z (over 1 year ago)
- Last Synced: 2025-03-24T15:47:31.272Z (7 months ago)
- Topics: boilerplate, docker, helmet, husky, jwt-cookie, jwt-refresh-token, jwtservice, nest-js, nestjs-api, nestjs-backend, nestjs-boilerplate, nestjs-docker, nestjs-env, nestjs-mongoose, nestjs-starter-template, nestjs-typescript, nodemailer, rest-api, swagger, winston
- Language: TypeScript
- Homepage: https://github.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose/wiki
- Size: 368 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS Authentication JwtService

[](./LICENSE)
[](https://hits.dwyl.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose)## 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
```bash
$ npm install
```### 2. Rename the .env.example filename to .env and set your local variables
```bash
$ mv .env.example .env.development
```### 3. Start the application
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```### Swagger documentation for nestjs-mongoose-jwt
### Running
```bash
Once the application is running you can visit [http://localhost:3000/api](http://localhost:3000/api) to see the Swagger interface.
```## Author
👤 **Vinod**
- Github: [@vinodnextcoder](https://github.com/vinodnextcoder)
## Show your support
Give a ⭐️ if this project helped you!
## License
Release under the terms of [MIT](./LICENSE)