pub async fn launch_daemon_authenticate(
cli: &Cli,
) -> Result<Option<String>, CliError>Expand description
Phase 1 of daemon start: preflight + foreground authentication.
Eager (--username or any other auth flag was passed): authenticate
in the foreground so Steam Guard prompts can be answered on the
launching terminal. Returns Some(username); the resumed child
re-authenticates non-interactively using the saved refresh token.
Lazy (no auth flags): skip launch-time login entirely. The worker
authenticates on the first job that needs a Steam connection,
falling back to auto-detected saved tokens or anonymous. Returns
None.