POST
PollDeviceLogin
PollDeviceLogin lets the requesting device wait for approval and redeem its own token.
/api.v1.auth.AuthService/PollDeviceLogin Public01
Request
PollDeviceLoginRequest
PollDeviceLoginRequestapi.v1.auth.PollDeviceLoginRequest1 fields
Poll Device Login Request message.
deviceCodestringDevice Code value.
{
"deviceCode": "string"
}02
Response
PollDeviceLoginResponse
PollDeviceLoginResponseapi.v1.auth.PollDeviceLoginResponse5 fields
Poll Device Login Response message.
statusDeviceLoginStatusStatus value.
tokenstringPresent only after approval. This token belongs to the requesting device, not the phone.
isAdminboolIs Admin value.
expiresAtUnixint64Expires At Unix value.
usernamestringThe approved account name, used by clients with local multi-account profiles.
{
"status": "UNSPECIFIED",
"token": "eyJhbGciOiJIUzI1NiJ9…",
"isAdmin": true,
"expiresAtUnix": "1",
"username": "fireanime_user"
}03
Error handling
Common failure codes
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.