Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 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.

Awesome Lists containing this project

README

        

# NestJS Authentication JwtService

![Prettier](https://img.shields.io/badge/Code%20style-prettier-informational?logo=prettier&logoColor=white)
[![GPL v3 License](https://img.shields.io/badge/License-GPLv3-green.svg)](./LICENSE)
[![HitCount](https://hits.dwyl.com/vinodnextcoder/nestjs-jwt-auth-cookie-mongoose.svg)](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)