Example of the implementation of google oauth2 with NestJs
$ npm ciComplete the .env file
# Example: 1234.apps.googleusercontent.com
AUTH_GOOGLE_KEY= ...
# Example: 1234
AUTH_GOOGLE_SECRET= ...
# Example: http://localhost:3000/oauth2/callback
GOOGLE_CALLBACK_URL= ...
# Example: http://localhost:4200
FRONTEND_URL= ...# watch mode
$ npm run start:dev$ curl --location --request GET 'localhost:3000/oauth2/login/google'- Author - Malo Polese
- Website - malo-polese.fr