Expand description
Where an account token lands on the machine that will be the account.
didbot register and didbot operate both end with a session for the
account they created, and didbot-oauth reads one back through
env::ACCOUNT_TOKEN_FILE. One file per account, holding the token and
nothing else, so the path is the whole hand-off.
Behind the tokens feature, which the crates that store one turn on.
The didbot dispatcher links this crate for the flag grammar and the
verb table, and a router that can reach a credential writer is a reach
nothing asks it for.
Constants§
- SERVICE
- The directory under the state base that a host’s daemon owns.
Functions§
- account_
token_ file - The file the token for the account named
nameis kept in, understate. - default_
state_ dir - The state directory a process with no
super::env::STATEuses. - hand_
off - The one line a command prints about a stored token: how to hand it
to
didbot-oauth. - state_
dir - The state directory:
super::env::STATEwhen set, else$XDG_STATE_HOME/didbot/agentd, else~/.local/state/didbot/agentd, and the current directory for a process with none of them. - store_
account_ token - Writes
tokenfornameunderstate, readable by this user alone, and returns the file’s path.