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