pub fn resolve_token(token_file: Option<&Path>) -> Result<String>Expand description
Resolves the session token, in priority order:
--token-file— read its trimmed contents. On Unix the file must be0600(owner-only) or resolution fails closed.OMNI_BRIDGE_TOKEN— read from the environment.- Otherwise a fresh token is generated.
The token is never accepted from argv.