Device code not accepted
Error code
{
"code": "oauth.device_user_code_rejected",
"docUrl": "https://doc.mor.payments.ai/errors/oauth-device-user-code-rejected"
}
HTTP status
403
Cause
The code typed on the device approval page did not match a request that is waiting for approval. The page gives one answer for every reason, so a guess cannot learn which one applied. The reasons are:
- The code was mistyped. Case does not matter, and dashes and spaces are ignored.
- The code expired: a device code is valid for 30 minutes.
- The code was already used, or another account already opened it.
- Too many attempts. The page allows 5 code attempts per account in 15 minutes, a correct attempt included; until the window passes, every code is rejected.
How to fix
- Check the code against the one your device or agent shows. It has 8 letters, written like
BCDF-GHJK. - If it is right and still rejected, start the connection again on the device to get a new code, then type the new one.
- After repeated failures, wait 15 minutes before trying again.