A sample NestJS application, demonstrating how to use JWT Authentication, with short lived access tokens, and long lived refresh tokens.
The architecture is opinionated, comments and PR are appreciated.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Got to http://localhost:1337/api/swagger to find the swagger doc.
- Add third party providers Auth (Facebook, Google, Twitter, etc...)
- Add Redis cache for blacklisted access tokens (for now it's in memory)
- Update password, Lost password
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is MIT licensed.