Device Authorization (IDE Sign-in)
CodePus IDE uses OAuth 2.0 Device Authorization Grant (RFC 8628). No password is ever entered into the IDE.
Flow
- IDE β top-right βSign inβ
- IDE shows
user_code(e.g. ABCD-1234) - Browser opens https://codepus.ai/device, enter code
- Approve in browser β IDE auto-signs in
Token lifecycle
- access_token: 1 hour, auto-rotated
- refresh_token: 60 days
- Re-authentication required after expiration
Manage devices
Dashboard β Security β Devices. Revoke any session immediately.
Failures
| Code | Cause | Fix |
|---|---|---|
| device_code expired | >10 min | Sign in again |
| access_denied | User declined | Try again |
| slow_down | Polling too fast | Wait per spec |