curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/initAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"redirectUrl": "https://website-sample.com",
"ssoProviderId": "95b11417-f18f-457f-8804-68e361f9164f"
}
'{}This endpoint initializes a secure oauth authentication sequence by providing the state and current url path to the API.
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/initAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"redirectUrl": "https://website-sample.com",
"ssoProviderId": "95b11417-f18f-457f-8804-68e361f9164f"
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
Type of external auth provider The 'turnkey' value is deprecated and will be removed in a future version.
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 OAuth temporary auth code
Empty response
Was this page helpful?