> ## Documentation Index
> Fetch the complete documentation index at: https://magic-book.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google login

> Let customers sign in with their Google account by creating a Google OAuth client and saving its keys in MagicBook.

Google login lets customers sign in with their Google account.

## Create the Google client

**1. Open Google Cloud Console**

Go to the [Google Cloud Console](https://console.cloud.google.com/), choose or create a project, and open the OAuth consent screen. Fill it in with your site name and contact email.

**2. Create the credentials**

Create an **OAuth client ID** for a web application. Copy the **Redirect URL** from **Backend Settings → Auth Settings → Google** and add it as an authorised redirect URI.

**3. Copy the keys**

Copy the **Client ID** and the **Client Secret**.

## Save the keys in MagicBook

Open **Backend Settings → Auth Settings**, turn on **Login via Social (oAuth)** and **Enable Google Login**, paste the **Google Client ID** and **Google Client Secret**, then press **Save**. The sign-in page then shows a Google button.

> [!NOTE]
>
> The redirect URI must match the Redirect URL exactly, including the `https://` and the domain. Google refuses to sign people in if they differ.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.