Why Should You Add Google Sign-In?
Google OAuth lets users sign in with their existing Google account. One click, no new password to create, no email verification step. They're authenticated instantly.
Here's why it matters for your Framer site:
- Less friction: Users don't need to create yet another account. Their Google credentials are already saved in their browser.
- Higher conversion: Sites with social login see 20-40% higher signup rates compared to email/password only.
- Trust signal: "Sign in with Google" is a familiar, trusted button. Users feel safe clicking it.
- Verified email: Google provides a verified email address. No need for email verification flows.
- Auto account linking: If a user already registered with email/password and later clicks "Sign in with Google" using the same email, Auth Plugin automatically links the accounts.
How Do You Create a Google OAuth App?
First, you need credentials from Google Cloud Console:
- Go to console.cloud.google.com
- Create a new project (or select an existing one)
- Navigate to APIs & Services → Credentials
- Click Create Credentials → OAuth 2.0 Client IDs
- Set the application type to Web application
- Give it a name (e.g., "My Framer Site")
- Under Authorized redirect URIs, add the callback URL shown in Auth Plugin's Settings → OAuth panel
- Click Create
- Copy the Client ID and Client Secret: you'll need both.
The redirect URI must match exactly. This is where Google sends users after they authorize your app. Auth Plugin handles everything from there.
How Do You Configure the OAuth Consent Screen?
Before users can sign in, you need to set up the OAuth consent screen:
- In Google Cloud Console, go to APIs & Services → OAuth consent screen
- Choose External user type (unless this is an internal company tool)
- Fill in the required fields:
- App name: Your site name (users see this during sign-in)
- User support email: Your contact email
- Developer contact email: Same or different
- Under Scopes, add:
- email: To read the user's email address
- profile: To read the user's name
- openid: Required for authentication
- Save and continue
If your app is in "Testing" mode, only test users you explicitly add can sign in. For production, submit the app for Google's verification (takes 1-3 days).
For testing during development, add your own email as a test user.
How Do You Connect Google OAuth to Auth Plugin?
Now enter your credentials in the plugin:
- Open Auth Plugin in your Framer project
- Go to Settings → OAuth tab
- Toggle Google to ON
- Paste your Client ID in the Client ID field
- Paste your Client Secret in the Client Secret field
- Click Save Settings
That's it on the plugin side. Auth Plugin now knows how to authenticate users via Google.
The callback URL shown in the plugin's OAuth settings panel should match what you entered in Google Cloud Console.
How Do You Add the Google Sign-In Button?
Google OAuth works alongside your existing sign-in flow. Users who prefer email/password can still use it. Those who want one-click Google login get that option too.
The Sign In Form component automatically shows a "Sign in with Google" button when Google OAuth is enabled in your settings. No additional component needed.
If you want to customize the experience:
- Accent Color: The Google button follows its own official branding (white background, Google logo), but your form's accent color applies to the email/password fields.
- Redirect URL: After Google sign-in, users are redirected to the URL configured on your Sign In Form component (e.g., /dashboard).
- New users: If someone signs in with Google and doesn't have an account yet, Auth Plugin automatically creates one using their Google name and email.
How Do You Test the Google OAuth Flow?
Always test on your published site (not in Framer's canvas preview):
- Publish your site: Auth flows only work on published URLs
- Open your sign-in page: You should see the Google sign-in button
- Click it: Google's consent screen appears
- Authorize: Select your Google account and approve
- Check redirect: You should land on your dashboard or configured redirect URL
- Verify the identity: Open Auth Plugin → Identities. Your Google account should appear with your name and email.
If you see an error about "redirect_uri_mismatch", double-check that the callback URL in Google Cloud Console matches the one shown in Auth Plugin's OAuth settings.
What Are Common Google OAuth Issues and Fixes?
"Error 400: redirect_uri_mismatch"
The callback URL in Google Cloud Console doesn't match. Make sure it matches exactly what's shown in Auth Plugin's Settings → OAuth panel, no trailing slash, no http (must be https).
"Access blocked: This app's request is invalid"
Your OAuth consent screen isn't configured or is missing required fields. Go back to Step 2 and fill in all required information.
"This app isn't verified"
Your Google app is in testing mode. Either add your test email as a test user, or submit the app for Google verification.
Google button doesn't appear on the sign-in page
Make sure Google OAuth is enabled in Auth Plugin → Settings → OAuth. Save settings and republish your site.
User signed in with Google but can't access protected pages
Check that the Protected Pages are configured correctly and that the user's identity appears in Auth Plugin → Identities.
