Setting Up Google Login
Step 1 — Create a Google Cloud Project
- Go to Google Cloud Console
- Create a new project (or select an existing one)
- In the left menu go to APIs & Services → Credentials
- Click Create Credentials → OAuth 2.0 Client ID
- Set Application type to Web application
Step 2 — Set the Redirect URI
In the Authorized redirect URIs field, add exactly:
https://yourdomain.com/auth/google/callback
Step 3 — Copy Credentials to Admin Panel
- Copy your Client ID and Client Secret from Google Cloud Console
- Go to Admin → Settings → Social in ViralHub
- Paste the Client ID and Client Secret into the Google Login fields
- Toggle Show "Continue with Google" button to ON
- Click Save
The Google login button will now appear on the login and register pages.