# Add Google sign-in (/en/docs/deployment/google-sign-in)

① Live → ② Accounts work → ③ Merge = deployed → **④ Features** → ⑤ Taking payments

Your app is live and accounts work. This optional page lets people sign in with
Google. The **Login with Google** button is already in the app; it works once
your hosted Supabase project knows your Google client.

**Give your agent this prompt:**

```text interactive=true
Prepare Google sign-in for my hosted app.
Follow https://coremvp.com/en/docs/deployment/google-sign-in.md and its prerequisites.
Finish when Google sign-in reaches the dashboard; ask me before Google or Supabase changes, including client and credential setup, or any production change; never print secrets.
Report what changed, the check results and anything you could not run.
```

**You'll need**

A [Google Cloud](https://console.cloud.google.com/) project (free). Your app
URL, or your own domain if you add it first.

### 1. Create the Google client

Follow Supabase's [Google setup guide](https://supabase.com/docs/guides/auth/social-sign-in/auth-google)
to configure the consent screen and create an OAuth client of type **Web application**. In Google's
**Authorized JavaScript origins**, add your app origin. In **Authorized redirect URIs**, add your Supabase callback:

```txt interactive=true
https://<project-ref>.supabase.co/auth/v1/callback
```

For an external app in Testing, Google generally limits authorization to listed test users. Standard Sign in with Google and requests limited to name, email and profile are exceptions; an internal audience is limited to its organization. Check your requested scopes and intended audience in [Google’s audience guide](https://support.google.com/cloud/answer/15549945).

### 2. Turn on Google in Supabase

In your hosted project, open **Authentication → Sign In / Providers →
Google**, paste the client ID and secret, and save.

Your app's `/auth/callback` redirect is already allowed from
[Add your database](/en/docs/deployment/supabase#allow-auth-redirects).
Nothing changes in your host, so no redeploy is needed.

## Check it works

On your app URL, open `/signin`, choose **Login with Google** and approve. You
land on the dashboard, signed in. Reaching Google's consent screen alone is not
a pass.

For how the callback works and how to add GitHub, see
[OAuth providers](/en/docs/authentication/oauth-providers).

## What's next

- [Next: Add your domain](/en/docs/deployment/domain): Move the app to your own domain.
