v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Initialize oauth auth sequence

This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.

post/sdk/{environmentId}/providers/{providerType}/initAuth

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

providerType'emailOnly' | 'magicLink' | 'apple' | 'bitbucket' | 'coinbasesocial' | 'discord' | 'epicgames' | 'facebook' | 'farcaster' | 'github' | 'gitlab' | 'google' | 'instagram' | 'linkedin' | 'microsoft' | 'twitch' | 'twitter' | 'blocto' | 'banxa' | 'coinbaseOnramp' | 'cryptoDotCom' | 'dynamic' | 'alchemy' | 'zerodev' | 'telegram' | 'turnkey' | 'coinbaseWaas' | 'sms' | 'spotify' | 'tiktok' | 'line' | 'steam' | 'shopify' | 'zksync' | 'kraken' | 'blockaid' | 'passkey' | 'okta' | 'sendgrid' | 'resend' required

The 'turnkey' value is deprecated and will be removed in a future version.

Type of external auth provider

Request body

statestring required

Temporary auth state for oauth2 access

redirectUrlstring
ssoProviderIdstring

Example request

{
  "redirectUrl": "https://website-sample.com",
  "ssoProviderId": "95b11417-f18f-457f-8804-68e361f9164f"
}

Response

Empty response