Twitter Social Login with Magic
Twitter Social Login with Magic
Supported Platforms
You can allow your users to sign up & log in to your web app with their Twitter account.
👉 Play with a demo
👉 Watch the video walkthrough
#Prerequisites
- You will need a Twitter Developer account with Elevated access
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
#Twitter Setup
After installing the OAuth extension, you can now enable Twitter Login for your Magic app:
- Go to your Magic Dashboard
- Select the Magic app for which you’d like to enable Twitter Login, or create a new app
- Navigate to Social Login from the sidebar
- Click the toggle for Twitter
- Copy the Redirect URI field from your Magic Dashboard
- Go to Twitter App Dashboard. Navigate to Projects & Apps
- In the Projects & App, click New Project under Elevated, click Create new button on the next screen, choose your app environment, enter your app Name, and click Next
- Make sure to copy the API Key and API Key Secret to the Magic dashboard, which you can then use with your application that connects to Twitter.
- In Magic Dashboard, click Save
- Back to the Twitter Dashboard, click Set up under the User authentication settings section
- Toggle OAuth2.0 and select App Type based on your requirement.
- Make sure to paste the Redirect URI from Magic Dashboard in the Callback URI / Redirect URL and enter your Website URL and click Save.
- Return to your Magic Dashboard and click "Test Connection" to give your new Twitter OAuth flow a try! 🎉