From 39c3c0b26e01737e8550f10d97b254eb35d795b0 Mon Sep 17 00:00:00 2001 From: adrienne-deriv <103016120+adrienne-deriv@users.noreply.github.com> Date: Wed, 15 Jan 2025 22:37:54 +0800 Subject: [PATCH] Adrienne / Added backward compatability for social signup (#17988) * chore: added oidc changes back for sso and slo * chore: add backward compatability for social signup --- packages/hooks/src/useSilentLoginAndLogout.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/hooks/src/useSilentLoginAndLogout.ts b/packages/hooks/src/useSilentLoginAndLogout.ts index 42c3e190513e..9a7030bd38cc 100644 --- a/packages/hooks/src/useSilentLoginAndLogout.ts +++ b/packages/hooks/src/useSilentLoginAndLogout.ts @@ -29,6 +29,11 @@ const useSilentLoginAndLogout = ({ window.location.pathname.includes('callback') || window.location.pathname.includes('endpoint'); useEffect(() => { + // NOTE: Remove this logic once social signup is intergated with OIDC + const params = new URLSearchParams(window.location.search); + const isUsingLegacyFlow = params.has('token1'); + if (isUsingLegacyFlow) return; + if ( loggedState === 'true' && !isClientAccountsPopulated &&