> For the complete documentation index, see [llms.txt](https://phplime-envato.gitbook.io/qrexorder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phplime-envato.gitbook.io/qrexorder/google-login.md).

# Google login

Enable Google login by creating OAuth credentials in Google Cloud, then add them in your admin settings.

### Create Google OAuth keys

1. Open the [Google Cloud Console](https://console.cloud.google.com/).
2. Create a new project, or select an existing project.
3. Go to **APIs & Services → OAuth consent screen**.
4. Choose **External** or **Internal**.
5. Complete the required app details.
6. Save the consent screen settings.

### Generate client ID and client secret

1. Go to **APIs & Services → Credentials**.
2. Click **Create Credentials → OAuth client ID**.
3. Select **Web application**.
4. Enter your app name.
5. Add your website URL in **Authorized JavaScript origins**.
6. Add your callback URL in **Authorized redirect URIs**.
7. Click **Create**.

Google will generate:

* **Client ID**
* **Client Secret**

Copy both values and keep them safe.

{% hint style="info" %}
The redirect URI must exactly match your site callback URL. If it does not match, the Google login will not work.
{% endhint %}

<figure><img src="/files/me86Qoo0hvRfayIFHKzm" alt=""><figcaption></figcaption></figure>

### Add your URL here...

### Add the keys in your admin panel

Log in as admin and go to **Settings → Google login**.

Add:

* **Google Client ID**
* **Google Client Secret**

Then save the settings.

### Test Google login

1. Open the customer login page.
2. Click **Login with Google**.
3. Complete the Google account approval.

If everything is correct, the customer will log in successfully.

<figure><img src="/files/xvCcdfCZMYPTHSlduYni" alt=""><figcaption><p>Google login settings</p></figcaption></figure>
