Setup
Create a Google OAuth Application
- Navigate to the Google Cloud Console.
- Create a new project (or select an existing one).
- Go to Credentials and click + Create Credentials → OAuth client ID.
- Choose Web application as the application type.
- Under Authorized redirect URIs, add your site's callback URL:
https://your-site.com/?rest_route=/simple-jwt-login/v1/oauth/token&provider=google - Copy the Client ID and Client Secret.
warning
Keep your credentials secure - never commit them to version control or expose them publicly. Use separate OAuth client IDs for each environment (development, staging, production).
Configure in WordPress
- Go to Simple JWT Login → Integrations → OAuth → Google.
- Enter the Client ID and Client Secret from the Google Cloud Console.
- Set the Redirect URI to match what you registered in Google.
- Toggle Enable to activate the Google provider.