pub async fn commit_login(
api_base: &str,
token: &TokenSet,
session: &str,
lease: Option<LoginAttemptLease>,
) -> Result<AuthCompletionRecord, String>Expand description
Atomically publish a newly-authorized login and its attempt-bound completion.
The final critical section performs no network I/O and refuses a lease
invalidated by a newer attempt or identity mutation. None remains the
in-process CLI compatibility path and itself invalidates any outstanding
browser lease.