NestJS Authentication: JWTs, Sessions, logins, and more! | NestJS PassportJS Tutorial
- UsersService
- AuthService
- Implementing passport-local strategy (username/password login)
- AuthGuards
- Summary of local login flow
- Guard to check if user is authenticated
- Setting up sessions
- Summary of login with sessions flow
- Setting up JWT strategy, signing and validating
- Summary of JWT strategy flow
- Nest - framework TypeScript
- Node.js - is an open-source, cross-platform JavaScript runtime environment
- passport-npm - Passport strategy for authenticating an npm client.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov