Before You Start
Make sure you have:A Create project with User Accounts turned on
Your app running on a custom domain through Create’s domain setup
Overview
Set Up an X App
Create an app in X
Add to Create
Add your X App’s Client ID/Secret in Create
Add the X Login UI to your sign in pages
Make the page look how you want
Test flow
Make sure login works
X Setup
Access X Developer Portal
- Go to X Developer Portal
- Sign in with your X account
- Click “Create an App”

Apply for Developer Account
- If you don’t have a developer account, you’ll need to apply
- Fill out the required information about your use case
- Submit your application

Choose Developer Plan
- Review the available developer plans
- You can sign up for a Free account if you prefer
- Select your plan and continue

Accept Developer Agreement
- Review the developer terms
- Describe your app’s purpose and that you’re using Login with X
- Accept the terms to proceed

Name Your Project
- Choose a descriptive name for your project
- This is for internal organization
- Click continue

Select Use Case
- Choose the primary use case for your app
- This helps X understand how you’ll use their API

Add Project Description
- Provide a detailed description of your project
- Explain how you’ll use X’s features
- Be specific about your Login with X implementation

Skip Initial Tokens
- You’ll see initial Keys & Tokens
- These include API Key, API Key Secret, and Bearer Token
- You can skip these for now - click “App Settings”

Set App Permissions
- Choose your app permissions level
- You can request read/write permissions
- Optionally request email access for users if you want your app to send users emails

Add App Information
-
Enter your callback URL:
https://www.your-domain.com/api/auth/callback/twitter -
Add your website URL:
https://www.your-domain.com -
Add privacy policy URL:
https://your-domain.com/privacy -
Add terms of service URL:
https://your-domain.com/terms

Add to Create Project
Enable User Accounts
You have two options:
- Prompt Create with “Let users sign in”
- Enable User Accounts from the logo menu
Add Sign In UI
- Return to the chat
- Prompt Create with “Add Login with X as an option”
- Create will update your sign-in pages automatically

Testing
- Publish your changes
- Open your app in a new incognito window
- Go to the sign in page
- Try signing in with X
- Check the auth_users table to see your new user
Troubleshooting
Can't see the X button
Can't see the X button
Login not working
Login not working
- Double check your domain is exactly the same in Create and X
-
Make sure your callback URL is right:
www.[your-domain].com/api/auth/callback/twitter - Check if your Client ID and Secret are pasted correctly
- Make sure OAuth 2.0 is turned on in X
- Make sure your app is live at your custom domain
Users can't sign in after domain change
Users can't sign in after domain change
- Update the callback URLs in X Developer Portal
- Update your website URL in X app settings
- Re-publish your app on the new domain
FAQ
What user info do I get?
What user info do I get?
By default:
- Username
- Display name
- Profile picture (if they have one)
Can I change how the login button looks?
Can I change how the login button looks?
Do I need X to review my app?
Do I need X to review my app?
- For basic login: No
- For extra features: Yes
- You’ll need to submit your app to X for approval







