POST
/
sdk
/
{environmentId}
/
providers
/
{providerType}
/
oauthResult

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
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,
dynamic,
alchemy,
zerodev,
telegram,
turnkey,
coinbaseWaas,
sms,
spotify,
tiktok,
line,
steam,
shopify

Body

application/json
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
sessionPublicKey
string

Response

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

Valid oauth code

error
string

Error return from oauth provider when user denies access