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>",
  "telegramAuthToken": "<string>",
  "forceCreateUser": true,
  "code": "An example name",
  "sessionPublicKey": "An example name"
}'
{
  "code": "4/0AVHEtk436ug4uWwZN9i2PDpxGTVnLr63IqTNFzTInHce1q2JHQyOCJut9IK2SCZh4JaoSA",
  "error": "<string>",
  "status": "pending"
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

providerType
enum<string>
required

Type of external auth provider

Available options:
emailOnly,
magicLink,
apple,
bitbucket,
coinbasesocial,
discord,
epicgames,
facebook,
farcaster,
github,
gitlab,
google,
instagram,
linkedin,
microsoft,
twitch,
twitter,
blocto,
banxa,
coinbaseOnramp,
dynamic,
alchemy,
zerodev,
telegram,
turnkey,
coinbaseWaas,
sms,
spotify,
tiktok,
line,
steam,
shopify

Body

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

Temporary auth state for oauth2 access

telegramAuthToken
string

JWT Auth Token coming from Telegram Bot containing user information

forceCreateUser
boolean

Force create a user for Telegram Auto Login

code
string
Example:

"An example name"

sessionPublicKey
string
Example:

"An example name"

Response

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

Valid oauth code

Example:

"4/0AVHEtk436ug4uWwZN9i2PDpxGTVnLr63IqTNFzTInHce1q2JHQyOCJut9IK2SCZh4JaoSA"

error
string

Error return from oauth provider when user denies access