Skip to content

Commit

Permalink
Merge pull request #932 from vinu-deriv/revert-927-fix-account-redire…
Browse files Browse the repository at this point in the history
…ction

Revert "fix: account redirection from oidc"
  • Loading branch information
nijil-deriv authored Feb 26, 2025
2 parents 49845f5 + 81fd85b commit 67f0317
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,8 @@ export const requestSingleSignOn = async () => {

if (shouldRequestSignOn) {
const currentLanguage = Language.get();
const urlParams = new URLSearchParams(window.location.search);
const account = sessionStorage.getItem('account') ||
urlParams.get('account') ||
localStorage.getItem('account');
await requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/${currentLanguage}/callback?account=${account}`,
redirectCallbackUri: `${window.location.origin}/${currentLanguage}/callback`,
});
}
};
Expand Down

0 comments on commit 67f0317

Please sign in to comment.