curl --request POST \
--url https://api.example.com/cabinet/auth/account/link/{provider}/callback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"state": "<string>",
"device_id": "<string>"
}
'{
"success": true,
"message": "<string>",
"merge_required": false,
"merge_token": "<string>"
}Handle OAuth callback for linking a provider to the current account.
curl --request POST \
--url https://api.example.com/cabinet/auth/account/link/{provider}/callback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>",
"state": "<string>",
"device_id": "<string>"
}
'{
"success": true,
"message": "<string>",
"merge_required": false,
"merge_token": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
google, yandex, discord, vk