curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/checkTelegramAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"telegramAuthToken": "<string>",
"forceCreateUser": true,
"code": "An example name",
"sessionPublicKey": "An example name",
"captchaToken": "<string>"
}
'{
"error": {
"code": "<string>",
"message": "<string>"
},
"payload": {
"walletPublicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"email": "[email protected]"
}
}curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/checkTelegramAuth \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"state": "<string>",
"telegramAuthToken": "<string>",
"forceCreateUser": true,
"code": "An example name",
"sessionPublicKey": "An example name",
"captchaToken": "<string>"
}
'{
"error": {
"code": "<string>",
"message": "<string>"
},
"payload": {
"walletPublicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
"email": "[email protected]"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the environment
36"95b11417-f18f-457f-8804-68e361f9164f"
Telegram Check Auth
Temporary auth state for oauth2 access
JWT Auth Token coming from Telegram Bot containing user information
Force create a user for Telegram Auto Login
"An example name"
"An example name"
When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.
The user is recognized
Was this page helpful?