POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
signIn
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/providers/{providerType}/signIn \
  --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": [
      {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
        "chain": "<string>",
        "refId": "95b11417-f18f-457f-8804-68e361f9164f",
        "signerRefId": "95b11417-f18f-457f-8804-68e361f9164f",
        "email": "[email protected]",
        "id": "95b11417-f18f-457f-8804-68e361f9164f",
        "nameService": {
          "avatar": "<string>",
          "name": "<string>"
        },
        "publicIdentifier": "<string>",
        "walletName": "<string>",
        "walletProvider": "browserExtension",
        "walletProperties": {
          "turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
          "turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
          "turnkeyHDWalletId": "95b11417-f18f-457f-8804-68e361f9164f",
          "isAuthenticatorAttached": true,
          "turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f"
        },
        "format": "blockchain",
        "oauthProvider": "emailOnly",
        "oauthUsername": "<string>",
        "oauthDisplayName": "<string>",
        "oauthAccountId": "<string>",
        "phoneNumber": "9171113333",
        "phoneCountryCode": "1",
        "isoCountryCode": "US",
        "oauthAccountPhotos": [
          "<string>"
        ],
        "oauthEmails": [
          "<string>"
        ],
        "oauthMetadata": {},
        "previousUsers": [
          "95b11417-f18f-457f-8804-68e361f9164f"
        ],
        "embeddedWalletId": "<string>",
        "walletAdditionalAddresses": [
          {
            "address": "<string>",
            "publicKey": "<string>",
            "type": "ordinals"
          }
        ],
        "lastSelectedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "lastVerifiedCredentialId": "95b11417-f18f-457f-8804-68e361f9164f",
    "sessionId": "95b11417-f18f-457f-8804-68e361f9164f",
    "alias": "An example name",
    "country": "US",
    "email": "[email protected]",
    "firstName": "An example name",
    "jobTitle": "An example name",
    "lastName": "An example name",
    "phoneNumber": "<string>",
    "policiesConsent": true,
    "tShirtSize": "An example name",
    "team": "An example name",
    "username": "An example name",
    "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,
    "lists": [
      "<string>"
    ],
    "scope": "superuser marketing operations",
    "missingFields": [
      {
        "name": "<string>",
        "required": true,
        "enabled": true,
        "unique": true,
        "verify": true,
        "type": "standard",
        "validationRules": {
          "unique": true,
          "regex": "^0x",
          "validOptions": [
            {
              "label": "small"
            },
            {
              "label": "medium"
            },
            {
              "label": "large"
            }
          ],
          "checkboxText": "Agree to the terms and conditions"
        },
        "validationType": "text",
        "label": "<string>"
      }
    ]
  },
  "minifiedJwt": "jwt_value",
  "expiresAt": "1715620310"
}

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
code
string
required

Temporary 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
required

Encoded JWT token

user
object
required
minifiedJwt
string
required

Encoded JWT token

expiresAt
number
required

Format is a unix-based timestamp. When set, this will be the expiration timestamp on the JWT sent using either the jwt field or a response httpOnly cookie set by the server.