1

Create Google OAuth Client

Follow the steps mentioned in this link to create a Google OAuth Client:https://www.balbooa.com/help/gridbox-documentation/integrations/other/google-client-id
2

Add URLs While Creating Google OAuth Client

Authorized JavaScript origins:
{YOUR_SELFHOSTED_APP_URL}
eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com
Authorized redirect URIs:
{YOUR_SELFHOSTED_APP_URL}/users/sign-in
eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com/users/sign-in
{YOUR_SELFHOSTED_APP_URL}/users/sign-up
eg: https://selfhosted-abc-org.centralindia.cloudapp.azure.com/users/sign-up
3

Copy the Google OAuth Client ID

After the OAuth client is created, copy the Client ID and Client Secret.
4

Add Google OAuth Client ID env variable in express

Add the environment variable to your backend environment configuration:
GOOGLE_OAUTH_CLIENT_ID = {YOUR_GOOGLE_OAUTH_CLIENT_ID}
eg: GOOGLE_OAUTH_CLIENT_ID = 694528862847-u9...nnibb.apps.googleusercontent.com