Expand description
Canonical-value enumeration for OAuth-class IdentityAccount.status.
IdentityAccount.status is a String (free-form) at the SQLite layer
— api-key rows keep using whatever the legacy paths wrote
("unknown", "ok", etc.). For oauth-class bindings we pin a small
closed set per spec §4.4 so the frontend status-badge dispatch is
deterministic and the resolver’s expiry probe can never write an
off-the-spec string. Every place the resolver SETS or READS an
oauth-class status uses these constants.
Constants§
- EXPIRED
- Access token expired; refresh likely succeeds.
- NEEDS_
REAUTH - Refresh rejected / file missing / parse error; user must Reconnect.
- UNKNOWN
- Never probed (initial state on bundle import / unprobed provider).
- VALID
- Token file present and (probed) not expired.