pub fn cancel_active_login() -> bool
Abort the in-flight login flow, if any. Returns false if there was none (a harmless no-op — the UI can call this without checking state first).