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

# X (Twitter) login

> Let customers sign in with their X account by creating an X app and saving its keys in MagicBook.

X login lets customers sign in with their X (formerly Twitter) account. MagicBook lists it as **Twitter** on the Auth Settings page.

## Create the X app

**1. Create a project and app**

Open the [X developer portal](https://developer.x.com/), create a project and an app inside it.

**2. Set up user authentication**

In the app settings, turn on user authentication with OAuth. Set the callback URI to the **Redirect URL** shown on **Backend Settings → Auth Settings → Twitter**.

**3. Copy the keys**

Copy the **API Key** and the **API Secret Key** from the app's keys page.

## Save the keys in MagicBook

Open **Backend Settings → Auth Settings**, turn on **Enable Twitter Login**, paste the **Twitter API Key** and the **Twitter API Secret Key**, then press **Save**.

> [!NOTE]
>
> X changes its developer plans and their limits from time to time. Check that the plan you use allows sign-in before you launch.


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