Collect a device login
Polls a device login. Until the person decides, it answers 400 with error.code set to authorization_pending, or slow_down when you poll too often. access_denied and expired_token end the login. No credential is needed.
POST
/_luna/auth/device/tokenRequest body
requiredapplication/jsondeviceCodestringrequiredThe deviceCode that starting the login returned.
Responses
200
The login was approved. The key is returned once.
tokenstringrequiredAn account key (la_…) that acts as the account that approved.
accountDeviceAccount | nullShow propertiesHide properties
One of:
DeviceAccount
idstringrequiredemailstringrequirednull
nulldefault
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.