> ## 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.

# Twitter Login Auth

> Let your users to login and register using their own Twitter 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 Twitter

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

<Steps>
  <Step title="Step 1">
    Visit Twitter [Developer Portal](https://developer.twitter.com/en/portal) page.
  </Step>

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

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/login/twitter/t-1.webp?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=bd84e98490b2e1361e535bd85143773d" width="1366" height="636" data-path="images/login/twitter/t-1.webp" />
  </Step>

  <Step title="Step 3">
    Fill in all the details as you prefer, it is visible only to you.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-2.webp?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=9733ba86f4f8f5b9f5c77b7568e16179" width="1366" height="636" data-path="images/login/twitter/t-2.webp" />
  </Step>

  <Step title="Step 4">
    Under **Keys and tokens** tab, make sure to copy your **API Key** and **Secret Key**.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-3.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=a152846e9735227036905205303310f3" width="1257" height="555" data-path="images/login/twitter/t-3.png" />
  </Step>

  <Step title="Step 5">
    Next, select your app and click on **Edit** button under **User authentication settings** box.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-4.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=36d36d605ba42beaa2f38dc0e4024700" width="1229" height="754" data-path="images/login/twitter/t-4.png" />
  </Step>

  <Step title="Step 6">
    Setup **App Permissions** and **Type of App** as shown in the image below.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-5.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=61570921bf369cb64a1b1cebfc82d834" width="621" height="796" data-path="images/login/twitter/t-5.png" />
  </Step>

  <Step title="Step 7">
    Setup **App info** section and fill all 4 fields as shown in the image, replace **YOURDOMAINNAME** with your domain and make sure that there are no typos in any of the inputs, click save afterwards. You don't need Cliend IDs generated at the end for this particular scirpt.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-6.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=841044bebd12e8c19c7a970ecc550bb1" width="622" height="839" data-path="images/login/twitter/t-6.png" />
  </Step>

  <Step title="Step 8">
    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 Twitter API keys and enter your domain name there as well if it not shown already for you.

    <img src="https://mintcdn.com/davinci/IUNSbPo5lt6ysUzE/images/login/twitter/t-8.png?fit=max&auto=format&n=IUNSbPo5lt6ysUzE&q=85&s=efd2cca0d6b3e00631f170e588a16f29" width="1023" height="295" data-path="images/login/twitter/t-8.png" />
  </Step>

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

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