sdk
Oauth provider verify endpoint
Standard OAuth verify callback to exchange temproary code for oauth access
POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
verify
Authorization
Path
Body
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/verify \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"codeVerifier": "<string>",
"state": "<string>",
"captchaToken": "<string>"
}'
{
"jwt": "jwt_value",
"user": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"verifiedCredentials": [],
"alias": "<string>",
"country": "US",
"email": "jsmith@example.com",
"firstName": "<string>",
"jobTitle": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"policiesConsent": true,
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"lastVisit": "2023-11-07T05:31:56Z",
"newUser": true,
"metadata": {},
"btcWallet": "<string>",
"kdaWallet": "<string>",
"ltcWallet": "<string>",
"ckbWallet": "<string>",
"kasWallet": "<string>",
"dogeWallet": "<string>",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true
}
}
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
code
string
requiredTemporary auth code for oauth2 access
codeVerifier
string
Temporary auth code verifier for oauth2 access
state
string
Temporary auth state for oauth2 access
captchaToken
string
Optional captcha token to verify that the user is not a bot
Response
200 - application/json
jwt
string
requiredEncoded JWT token
user
object
requiredWas this page helpful?
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/verify \
--header 'Content-Type: application/json' \
--data '{
"code": "<string>",
"codeVerifier": "<string>",
"state": "<string>",
"captchaToken": "<string>"
}'
{
"jwt": "jwt_value",
"user": {
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"verifiedCredentials": [],
"alias": "<string>",
"country": "US",
"email": "jsmith@example.com",
"firstName": "<string>",
"jobTitle": "<string>",
"lastName": "<string>",
"phoneNumber": "<string>",
"policiesConsent": true,
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"lastVisit": "2023-11-07T05:31:56Z",
"newUser": true,
"metadata": {},
"btcWallet": "<string>",
"kdaWallet": "<string>",
"ltcWallet": "<string>",
"ckbWallet": "<string>",
"kasWallet": "<string>",
"dogeWallet": "<string>",
"emailNotification": true,
"discordNotification": true,
"newsletterNotification": true
}
}