X (formerly Twitter) social sign in
You can enable users to sign up and sign in using their X credentials. To enable this, you’ll need an X developer platform account and some developer know-how.
You may notice X still has mixed URLs and messaging for the name change from Twitter on their own site. We refer to X in this document.
Create an X app
Link to this sectionSign up for a X developer platform account and add your app.
If you are signing up for the first time, you will be given a default app. If you already have apps, you’ll need to create a project and then add the new app within that project.
Get the Kinde callback URL
Link to this section- In Kinde, go to Settings > Authentication.
- In the Social connections section, select Add connection.
- In the window that appears, select X, then select Save. X now appears in the list of Social connections.
- On the X tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead switch.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the X app.
- Use the copied Callback URL to set up the app, see below.
Set up your X app
Link to this section- Sign in to the X Developer Platform.
- In the side menu, select Projects & apps and then select your app.
- In the User authentication settings section, select Set up.
- Set the App Permissions.
- Switch on Request email from users.
- Select the Type of App as Native app.
- Enter the Kinde callback URL you copied earlier. Add entries for all your organization custom domain callbacks, e.g.
account.customdomainone.com/login/callback
,account.customdomaintwo.com/login/callback
, etc. - Enter your Kinde domain URL, e.g.
https://yourdomain.kinde.com
. - Enter details in other fields if you wish.
- Select Save.
- Select the Key and tokens tab at the top of the page.
- Copy the Client ID and Client Secret from the Oauth2.0 section and paste them into a text doc or other place where you can get them again later.
View X Developer Platform’s docs for more info about authentication.
Add X credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- In the list of Social connections, select Configure on the X tile.
- Paste the Client ID and Client secret from the X app into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will allow users to sign in with X.
- Select Save.
Users will now see X as an option to sign up and sign in to the selected applications.
When an email is not provided
Link to this sectionX does not require an email for sign up, but Kinde does. So if a user signs up with X and an email is not detected, we will ask for one.
The user only needs to provide their email once, then they can sign in via X without disruption.
If the email they provide is already detected in Kinde, we will automatically link the accounts so as not to duplicate.