Skip to content

Commit

Permalink
Revert "fix: account redirection from oidc"
Browse files Browse the repository at this point in the history
  • Loading branch information
nijil-deriv authored Feb 26, 2025
1 parent 49845f5 commit 2df20dd
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 2df20dd

Please sign in to comment.