-
Notifications
You must be signed in to change notification settings - Fork 2
Creating an OAuth 2.0 client to enable sign in using Google
To allow sign-in using Google, we need to first create an OAuth 2.0 client in Google's API console.
Here are the steps to create an OAuth 2.0 client and obtain its client ID and client secret that can be provided to Wassup to enable sign-in using Google.
-
Navigate to Google API console and create a new project - https://console.developers.google.com/projectcreate.
-
Go to the
Credentials
link under the sidebar by ensuring that we have selected the right project that we just created in the above step. Click on theCreate Credentials
link at the top. -
Select
OAuth client ID
from the dropdown menu. -
Enter the necessary details. Here's how client configurations would look like at the end. Make sure to enter the appropriate redirect URI(s).
-
Set the environment variables
GOOGLE_CLIENT_ID
,GOOGLE_CLIENT_SECRET
andGOOGLE_REDIRECT_URI
(in the.env
file) accordingly with the values obtained forClient ID
andClient secret
from the above step.