Skip to content

Repository files navigation

Nest OAuth: Adding Mobile Apps Support

Intro

This is the source code for the tutorial Nest Authentication with OAuth2.0. This is the 6th and extra 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 Lesser General Public License v3.0. See the Copying and Copying Lesser files for details.

About

Tutorial on how to implement full oauth

Resources

Stars

126 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages