Optimized the process for obtaining user sessions for SPA and comcipapic

This commit is contained in:
2026-10-27 03:34:23 -03:00
parent 1d5b28e95b
commit 8d2110e8e8
13 changed files with 20 additions and 20 deletions

View File

@@ -334,8 +334,8 @@ function createAuthConsumerSession({
if (restarted) restartedDocument = documentId;
}
} else if (page?.status === "ready" && documentId) {
// Confirm a stable, fully loaded document, not a transient SAML page.
await wait(500);
// Confirm the parsed application document without waiting for visual assets.
await wait(100);
let confirmed;
try { confirmed = await inspectPage(tab); } catch { /* A redirect started during validation. */ }
if (confirmed?.status === "ready" && confirmed.documentId === documentId && !state?.failedStatus) {