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

Required string length: 36
providerType
enum<string>
required

Type of external auth provider

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

Body

application/json
State string sent to oauth provider from sdk during login
state
string
required

Temporary auth state for oauth2 access

Response

200
application/json
Success
status
enum<string>
required
Available options:
pending,
completed
code
string

Valid oauth code

error
string

Error return from oauth provider when user denies access