You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mocactl login: say how long the device code is valid, and handle expired_token #431
Seen in the OpenShift acceptance run (#423): two device codes expired while the user was away from the browser.
Today:mocactl login prints Open https://github.com/login/device and enter the code XXXX-XXXX, then fails with github device authorization failed: expired_token once GitHub's device code expires.
Proposal:
Print how long the code is valid, from expires_in in the device-code response.
On expired_token, re-issue a code once and print the new one, or say clearly "the code expired, run mocactl login again".
Applies to packages/mocactl (and to the control plane's /v1/auth/device relay, if it drops expires_in).
Activity
fix(mocactl): say how long the login code lasts, and re-issue an expi…