Skip to main content

Usage

Prerequisites

Twitter Setup

  1. Go to your Magic Dashboard
  2. Select the Magic application for which you’d like to enable Twitter Login, or create a new application
  3. Navigate to Social Login from the sidebar
  4. Click the toggle for Twitter
  5. Go to Twitter App Dashboard and navigate to Projects & Apps
  6. In the Overview section, click on Add Project
twitter-step-1.png
  1. Add your project name, use case and description
twitter-step-1.png
  1. Do NOT use the API Key and Secret under Consumer Keys. Make sure to copy the Client ID and Client Secret to the Magic Dashboard, which you can then use with your application that connects to Twitter. Complete flow if OAuth 2.0 Client ID and Client Secret are not visible
  1. Navigate to the application on the sidebar and click Set up under User authentication settings
twitter-step-4.png
  1. Fill out all of the required permissions and app type information
  2. Paste the Redirect URI you will pass as the redirectURI argument to the loginWithRedirect method, in the Callback URI / Redirect URL and add your applications Website URL
twitter-step-5.png
  1. After saving these details for the first time, Twitter will then display an OAuth 2.0 Client ID and Client Secret. IMPORTANT: These are the keys that Magic requires to use v2. Do NOT use the API Key and API Key Secret for v2.
  2. “Test Connection” function in dashboard will not work for v2.

Resources