Skip to content

Commit

Permalink
fix: oidc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Feb 27, 2025
1 parent fb11418 commit 58fe852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/layout/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ const AppHeader = observer(() => {
const currency = getQueryParams.get('account') ?? '';
const query_param_currency =
sessionStorage.getItem('query_param_currency') || currency || 'USD';
const session_storage_currency = sessionStorage.getItem('query_param_currency');
await requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
...(session_storage_currency
...(query_param_currency
? {
state: {
account: `/?account=${query_param_currency}`,
Expand Down
3 changes: 1 addition & 2 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ const Layout = () => {
!clientHasCurrency
) {
const query_param_currency = sessionStorage.getItem('query_param_currency') || currency || 'USD';
const session_storage_currency = sessionStorage.getItem('query_param_currency');
requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
...(session_storage_currency
...(query_param_currency
? {
state: {
account: `/?account=${query_param_currency}`,
Expand Down

0 comments on commit 58fe852

Please sign in to comment.