A progressive Node.js framework for building efficient and scalable server-side applications.
- This example use
ejstemplate engine. While the original example is based onhbs. - This example demonstrates how to use NestJS 8.x and Passport-42 to authenticate users using 42 OAuth 2.0 API. Use this example as a starting point for your own web applications.
To install this example on your computer, clone the repository and install dependencies.
$ git clone https://github.com/ykoh42/42OAuth-NestJS.git
$ cd 42OAuth-NestJS
$ npm installRegister an app on 42 intra
and set the redirect URI to http://localhost:3000/login/42/return.
Copy .env.sample to .env and edit CLIENT_ID and CLIENT_SECRET info.
Start the server.
$ npm run startOpen a web browser and navigate to http://localhost:3000/ to see the example in action.
