APIReference
Завершить вход в sml через браузер
Polls a device authorization request. After explicit browser approval, the matching PKCE verifier atomically consumes the request and returns one personal API token. Replays fail closed and never return the token again.
Тело запроса
application/json
Типы TypeScript
Use the request body type in TypeScript.
Ответ
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/auth/device/token/" \ -H "Content-Type: application/json" \ -d '{ "device_code": "stringstringstringstringstringstringstrings", "code_verifier": "stringstringstringstringstringstringstrings" }'{ "access_token": "stringstringstringstringstringst", "token_type": "Bearer", "expires_in": 1, "scopes": [ "profile:read" ], "expires_at": "2019-08-24T14:15:22Z", "token_prefix": "string"}