From 7dfcdc1720e96f6d61d873ab550678d142f25139 Mon Sep 17 00:00:00 2001 From: Fidel Coria Date: Wed, 23 Dec 2020 11:15:36 -0600 Subject: [PATCH] reduce close timeout to 100 ms --- plugins/auth-backend/src/lib/flow/authFlowHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth-backend/src/lib/flow/authFlowHelpers.ts b/plugins/auth-backend/src/lib/flow/authFlowHelpers.ts index 86a615e721..e70aa0bfee 100644 --- a/plugins/auth-backend/src/lib/flow/authFlowHelpers.ts +++ b/plugins/auth-backend/src/lib/flow/authFlowHelpers.ts @@ -58,7 +58,7 @@ export const postMessageResponse = ( (window.opener || window.parent).postMessage(JSON.parse(authResponse), origin); setTimeout(() => { window.close(); - }, 100 * 2); // double the interval of the core-api lib/loginPopup.ts + }, 100); // same as the interval of the core-api lib/loginPopup.ts (to address race conditions) `; const hash = crypto.createHash('sha256').update(script).digest('base64');