From ca02e847290b80ace379e97eecc3ba2995bba78d Mon Sep 17 00:00:00 2001 From: Thisyahlen Date: Fri, 27 Sep 2024 13:59:03 +0800 Subject: [PATCH] chore: event origin --- src/hooks/useOAuth2.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useOAuth2.ts b/src/hooks/useOAuth2.ts index 1003a0c..7b07c06 100644 --- a/src/hooks/useOAuth2.ts +++ b/src/hooks/useOAuth2.ts @@ -32,6 +32,8 @@ export const useOAuth2 = (OAuth2GrowthBookConfig: OAuth2GBConfig, WSLogoutAndRed const onMessage = async (event: MessageEvent) => { const allowedOrigin = getOAuthOrigin(); + console.log('allowedOrigin', allowedOrigin); + console.log('event.origin', event); if (allowedOrigin === event.origin) { if (event.data === 'logout_complete') { console.warn('logout completed');