# X (Twitter) Login

To enable X Auth for your project, you need to set up a X OAuth application and add the application credentials in the Openfort Dashboard.

## Overview

Setting up X logins for your application consists of 3 parts:

* Create and configure a X Project and App on the [X Developer Dashboard](https://developer.x.com/en/portal/dashboard).
* Add your X API Key and API Secret Key to your [Openfort Project](https://dashboard.openfort.io/providers).
* Add the login code to your app. See [Add social login to your app](/docs/configuration/social-login#add-social-login-to-your-app) for React, React Native, JavaScript, and Swift.

<div align="center">
  <img width="70%" height="70%" src="https://www.openfort.io/images/blog/twitterauth_a9219869d5.png" alt="X Auth" />
</div>

### Configuration

1. Create Project and App:

* Click "+ Create Project", enter project name, and select use case.
* Enter a project description and app name.
* Copy and save your API Key (client\_id) and API Secret Key (client\_secret).

2. Set Up App Settings:

* Click on "App settings".
* Go to "User authentication settings" and click "Set up".

3. Configure App Permissions:

* Turn ON "Request email from users".
* Select "Web App" as the Type of App.
* Enter Callback URL, Website URL, Terms of service URL, and Privacy policy URL.

4. Set up X in Openfort:

* Go to the [Openfort dashboard](https://dashboard.openfort.io/providers).
* Click on X Enabled to turn it ON.
* Enter the X Client ID and X Client Secret.
