Repository navigation
arcq 1.1.0
Optional OAuth refresh so secured-portal users stop re-pasting short-lived tokens.
Added
- OAuth refresh-token support.
arcq token connectstores a refresh credential once - from a pastedesriJSAPIOAuthblob, a bare refresh token, or a--commandcredential helper (1Password,pass, Keychain) that keeps the secret in your secret manager. Works with IWA/SAML/PKI portals, since the web app already performed the sign-in. arcq token refresh- mint a fresh access token on demand from the stored credential.- Automatic refresh -
arcq query,arcq list, andarcq fieldstransparently refresh once and retry when they hit an expired token (exit code2) and OAuth is configured. - New state files
~/.arcq-oauth.json(refresh credential) and~/.arcq-token-meta.json(access-token expiry), both written mode600. The refresh token is never printed by any command.
Changed
arcq token setnow prompts for the token when it is omitted, so the secret no longer has to land in shell history; passing it as an argument still works.arcq token shownow reports the access-token expiry and whether refresh is configured (portal origin only, never the token), on stderr so$(arcq token show)stays scriptable.- The exit-code
2guidance and error message now point atarcq token refreshas well asarcq token set.
Install
npm install -g @leverstack/arcq@1.1.0Full Changelog: v1.0.1...v1.1.0