Skip to content

lvshv/nestjs-oauth

 
 

Repository files navigation

Nest OAuth: Adding External Providers

Intro

This is the source code for the tutorial Nest Authentication with OAuth2.0. This is the 5th and last part on a 5 part series, where we will build a production level NestJS OAuth2 service.

Contents

This contains the code for a fastify based REST Authentication API, with local and external OAuth2.0 authentication.

Local Setup

  1. Install the dependencies:
    $ yarn install
  2. Create a .env file with all the fields equal to the example.
  3. Run the app in development mode:
    $ yarn start:dev

Testing

All Unit tests:

$ yarn test

Individual Unit test:

$ yarn test service-name.service.spec.ts

Coverage:

$ yarn test:cov

E2E tests:

$ yarn test:e2e

License

The code of this tutorial is licensed under the GNU LGPLv3 - see the LICENSE file for details.

About

Tutorial on how to implement full oauth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.2%
  • Other 0.8%