X (Twitter) OAuth Integration
Reclaim Protocol allows you to access X (formerly Twitter) user data through our OAuth integration. This guide will walk you through the setup process and available endpoints.
Video Walkthrough
Watch our step-by-step video guide to learn how to:
- Set up your X OAuth application in the Reclaim dashboard
- Configure the required permissions and callback URLs
- Implement the integration in your application
- Test the authentication flow
Setup
1. Create Application
First, create a Reclaim OAuth App in the Reclaim Devtool. During setup, you'll need to:
-
Preview and configure your user experience
-
Select X as your oauth identity provider
-
Select the data scopes you want to access
-
Configure your OAuth callback URLs and allowed origins
-
Get your client credentials (Client ID and Secret)
2. OAuth Integration
Choose the appropriate OAuth library based on your tech stack:
Integrate Reclaim OAuth in your application using the library of choice and credentials obtained from the dashboard.
React Example
3. API integration
When the user is authenticated you can access user data using API endpoints. For example:
This endpoint will return all the data a user has shared in the authentication phase.
4. API endpoints
Returns user email used in X
Returns a list of the users last 20 tweets
Returns user profile data