3. RFC 8628 — Error codes when polling

8 cards

Review this deck
All cards in this deck

authorization_pending

The user has not finished confirming; the CLI keeps polling at `interval`.

slow_down

Still waiting, but the CLI is polling too fast; it MUST increase the interval by 5 seconds for this and all subsequent requests.

access_denied

The user declined on the consent page; the CLI stops polling and reports an error.

expired_token

The device_code has passed `expires_in`; the CLI stops and may start a new flow.

HTTP status of OAuth errors at the token endpoint

400 Bad Request with a JSON body containing `error` (RFC 6749 §5.2).

invalid_grant when the device_code was already used

A device code can be exchanged for a token only once; a second exchange must be rejected.

Network errors while polling

The CLI should back off and retry within `expires_in`, not treat it as access_denied.

Ctrl+C while waiting

The CLI stops polling cleanly; the device_code expires on the server by its TTL.

3. RFC 8628 — Error codes when polling – Flashcards – CLI Auth | Học Dev