POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
oauthResult
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/oauthResult \
  --header 'Content-Type: application/json' \
  --data '{
  "state": "<string>"
}'
{
  "code": "4/0AVHEtk436ug4uWwZN9i2PDpxGTVnLr63IqTNFzTInHce1q2JHQyOCJut9IK2SCZh4JaoSA",
  "error": "<string>",
  "status": "pending"
}

Path Parameters

environmentId
string
required

ID of the environment

providerType
enum<string>
required

Type of external auth provider

Available options:
emailOnly,
magicLink,
apple,
bitbucket,
coinbasesocial,
discord,
facebook,
farcaster,
github,
gitlab,
google,
instagram,
linkedin,
microsoft,
twitch,
twitter,
blocto,
banxa,
dynamic,
alchemy,
zerodev,
turnkey,
coinbaseWaas,
sms

Body

application/json
state
string
required

Temporary auth state for oauth2 access

Response

200 - application/json
code
string

Valid oauth code

error
string

Error return from oauth provider when user denies access

status
enum<string>
required
Available options:
pending,
completed