Twitter Authentication
This page illustrates how to authenticate Twitter identities with the Provenance SDK
When users attempt to verify their Twitter statistics through Clique's social oracles, they will undergo the Twitter authentication flow, as shown in the following diagram:

In order for the above authentication flow to work, we need you to provide the following two pieces of information:
This is the URL of your website you will redirect your user to after he/she authorizes our Twitter Application to access his/her personal information. After installing the Clique SDK on your website, the Twitter client must be able to identify your frontend to perform secure authorization.
You will need this Redirect URL when applying for Twitter Application.
- 1.
- 2.Sign in with your Twitter account. You might need to apply for a developer account.
- 3.If you apply for the developer account, after verification, you will be prompted to enter a unique App name; or simply click “Add App” under “Project 1” on the dashboard.
- 4.Name your app
- 5.Note down the following:
- 1.API key
- 2.API key secret
- 3.Bearer Token
- 6.Click Edit and upload the App Icon.
- 7.Under User authentication settings click Set up
- 8.Fill in the following formsCallback URI:Please add your Redirect URLs hereWebsite URL:Please add your Website URL here
- 9.
- 1.Redirect URLs
- 2.Twitter Application Client ID
Please refer to https://github.com/CliqueOfficial/clique-sdk-client/blob/main/src/TwitterAuth/TwitterAuth.tsx for sample code to get user's Twitter token in a privacy-preserving way.