Skip to main content

status_now

Function status_now 

Source
fn status_now(account: &IdentityAccount, now_ms: i64) -> String
Expand description

account’s status read from its credentials file. Only what the file proves moves it: no token in it is needs_reauth, and a live token turns a stored expired back to valid. A lapsed access token with a refresh token is left as stored, because the CLI renews it by itself and the file cannot say whether that will work. invalid (a provider refusal), needs_reauth and unknown are not re-read, and an account the file cannot speak for (no config dir, a Keychain on macOS) keeps the stored status.