Skip to content

Commit 5060a77

Browse files
chore: add backward compatability for social signup (#17987)
1 parent 19e27b4 commit 5060a77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/hooks/src/useSilentLoginAndLogout.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ const useSilentLoginAndLogout = ({
2929
window.location.pathname.includes('callback') || window.location.pathname.includes('endpoint');
3030

3131
useEffect(() => {
32+
// NOTE: Remove this logic once social signup is intergated with OIDC
33+
const params = new URLSearchParams(window.location.search);
34+
const isUsingLegacyFlow = params.has('token1');
35+
if (isUsingLegacyFlow) return;
36+
3237
if (
3338
loggedState === 'true' &&
3439
!isClientAccountsPopulated &&

0 commit comments

Comments
 (0)