Skip to content

Commit 27506ab

Browse files
committed
fix: only close window when has opener
1 parent 5bfc6ba commit 27506ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/state/KindeProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,9 @@ export const KindeProvider = ({
583583
await storeState.localStorage.removeSessionItem(
584584
storeState.LocalKeys.performingLogout,
585585
);
586-
window.close();
586+
if (window.opener) {
587+
window.close();
588+
}
587589
}
588590

589591
const hasCode = params.has("code");

0 commit comments

Comments
 (0)