Auth Plugin logo
Auth Plugin
Back to Blogs
Tutorial

How to Set Up Google OAuth on Your Framer Site

Let users sign in with their Google account in one click. A complete walkthrough from creating Google credentials to testing the live flow.

Mar 14, 2026 7 min
How to Set Up Google OAuth on Your Framer Site

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:

  1. Go to console.cloud.google.com
  2. Create a new project (or select an existing one)
  3. Navigate to APIs & Services → Credentials
  4. Click Create Credentials → OAuth 2.0 Client IDs
  5. Set the application type to Web application
  6. Give it a name (e.g., "My Framer Site")
  7. Under Authorized redirect URIs, add the callback URL shown in Auth Plugin's Settings → OAuth panel
  8. Click Create
  9. 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 Connect Google OAuth to Auth Plugin?

Now enter your credentials in the plugin:

  1. Open Auth Plugin in your Framer project
  2. Go to Settings → OAuth tab
  3. Toggle Google to ON
  4. Paste your Client ID in the Client ID field
  5. Paste your Client Secret in the Client Secret field
  6. 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):

  1. Publish your site: Auth flows only work on published URLs
  2. Open your sign-in page: You should see the Google sign-in button
  3. Click it: Google's consent screen appears
  4. Authorize: Select your Google account and approve
  5. Check redirect: You should land on your dashboard or configured redirect URL
  6. 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.

Related articles