Expand description
Credential storage.
Tokens live in the OS keychain (macOS Keychain, Windows Credential Manager, Secret Service on Linux) and are keyed by account, not by profile, so one login serves every organisation that account can see.
There is deliberately no plaintext fallback and no command that prints a token to stdout: a missing keychain is an error with instructions, not a silent downgrade to a file anyone can read.
Enums§
- Origin
- Where a token came from.
- Secret
Error
Functions§
- forget
- Remove the stored token. Removing a token that is not there is not an error.
- is_
stored - Whether a token exists, without moving the secret itself around.
- overridden
- Whether the environment is standing in for the keychain.
- store
- Store (or replace) the OAuth token for an account.
- token
- Fetch the OAuth token for an account.
- token_
from - Fetch it, and say where it came from.