tcmts.cli.atproto

test/
1 definitions
APP_PASSWORD_ENV "TCM_ATPROTO_APP_PASSWORD"
The environment variable an app password is given in, for tcm to sign in with it instead of in the browser.
SERVE_LXM "codes.tcm.serve"
The method a sign-in to a tcm server (`tcm serve`) is for: the `lxm` of the service-auth tokens a PDS signs for it.
SERVE_SCOPE "atproto rpc:codes.tcm.serve?aud=*"
What signing in to tcm servers asks of an account's PDS: service-auth tokens for SERVE_LXM, addressed to any server (each token names the one it's for).
atprotoSession (o: { who?: string | undefined; scope: string; why: string; tell?: ((line: string) => void) | undef…
A sign-in for `scope`, as `who` (a handle or DID) or, without one, the one used last: kept from before (its tokens refreshed if they've expired), or a new one, kept for next time (in tcmSessions): with the app password in `TCM_ATPROTO_APP_PASSWORD` if it's set (no browser, and never again, as it signs in again by itself), else in the browser, for the scopes the kept one had as well. A kept app password's sign-in covers every scope.
sessionsFile () => string
Where sign-ins are kept: `$XDG_CONFIG_HOME/tcm/atproto.json` (`~/.config/tcm/atproto.json`), readable only by you.
tcmSessions () => SessionStore
tcm's own sign-ins: kept in sessionsFile.