Where
api/src/libraries/google
api/src/modules/authentication/application/authentication.google.controlle.ts
client/src/modules/googleOauth
Activation
Create your Google project and set your Client ID in your client/.env
and api/.env
files.
# client/.env
NEXT_PUBLIC_GOOGLE_CLIENT_ID=YOUR_CLIENT_ID
# api/.env
GOOGLE_CLIENT_ID=YOUR_CLIENT_ID
Usage
The Continue with Google
button appears automatically when your client ID is detected.
Read More
Learn more on @react-oauth/google and google-auth-library