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

# Google Login Auth

> Let your users to login and register using their own Google accounts for simplicity

## Introduction

Davinci AI provides you a solution to let your users login using multiple different social media accounts that they use on a daily basis.

## Configure Google

To let users to login and register using their Google accounts, follow the steps below:

<Steps>
  <Step title="Step 1">
    Visit [Google API Console](https://console.developers.google.com/) page.
  </Step>

  <Step title="Step 2">
    Once you are logged in your Google console, create a **new project** or use your existing one.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-1.jpg?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=084adad8743401ea82f92aaf959b9cf7" width="1453" height="812" data-path="images/login/google/g-1.jpg" />
  </Step>

  <Step title="Step 3">
    If you are creating a new project, provide a **Project name** and click save.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-2.jpg?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=1ffd7a336ac384b1c43010f8dbe337f9" width="616" height="497" data-path="images/login/google/g-2.jpg" />
  </Step>

  <Step title="Step 4">
    Next, click **Credentials** on the side menu then **Create Credentials** -> **OAuth client ID**.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-3.jpg?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=c29f6315446b1c28a7003d2f20dfd1b0" width="960" height="591" data-path="images/login/google/g-3.jpg" />
  </Step>

  <Step title="Step 5">
    Click on **configure** button.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-4.jpg?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=ec37c6f0b6edd7578893b7cf8445dc1f" width="1649" height="323" data-path="images/login/google/g-4.jpg" />
  </Step>

  <Step title="Step 6">
    On the OAuth Concent screen click **External** and click next afterwards provide all required informaiton there.
  </Step>

  <Step title="Step 7">
    Fill in the required fields as needed, and replace **YOUR-DOMAIN-NAME.com** with your domain and make sure that there are no typos in any of the inputs, click create afterwards.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-5.jpg?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=41acf7c73607537e30ee68e2d58eb8db" width="616" height="890" data-path="images/login/google/g-5.jpg" />
  </Step>

  <Step title="Step 8">
    Copy the provided **Client ID** and **Client Secret** somewhere.
  </Step>

  <Step title="Step 9">
    Go to **Admin Panel** -> **General Settings** -> **Auth Settings** page, this is where you configure all social media login accounts and settings.

    1. First, enable **Login via Social Media** (OAuth)

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-7.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=396600a9fdc5227eabb857d63968f30e" width="579" height="191" data-path="images/login/twitter/t-7.png" />

    2. Next, include your Google API keys and enter your domain name there as well if it not shown already for you.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/google/g-5.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=6b2039b30e1e970fba23978c3d5c79e7" width="1021" height="295" data-path="images/login/google/g-5.png" />
  </Step>

  <Step title="Step 10">
    After you are done with configurations, click on **Save** button.
  </Step>
</Steps>

<Check>
  Congratulations! You have successfully comleted the Login and Registration with Google process.
</Check>
