Skip to content

Commit

Permalink
Adrienne / Added backward compatability for social signup (#17988)
Browse files Browse the repository at this point in the history
* chore: added oidc changes back for sso and slo

* chore: add backward compatability for social signup
  • Loading branch information
adrienne-deriv authored Jan 15, 2025
1 parent f0a875a commit 39c3c0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/hooks/src/useSilentLoginAndLogout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 39c3c0b

Please sign in to comment.