sdk
Returns the authorization code or error retuned by oauth provider
POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
oauthResult
Authorization
Path
Body
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
requiredID of the environment
providerType
enum<string>
requiredType 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
requiredTemporary 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>
requiredAvailable options:
pending
, completed
Was this page helpful?
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"
}