pub(crate) async fn legacy_temp_login() -> Result<()>Expand description
One-shot bootstrap login for commands that need an authenticated user before bw login writes
its own session state. When the BW_EMAIL / BW_PASSWORD env vars are set, logs in against the
persisted session database, persists the resulting session state (tokens, login method, account
crypto state, and a session-key envelope), and mints a session key which it prints for the user
to export as BW_SESSION and reuse on subsequent runs. Does nothing when the env vars are
unset.