Skip to content

Commit

Permalink
Merge pull request #253 from rupato-deriv/Rupato/Test-silent-login-4
Browse files Browse the repository at this point in the history
fix: added cookies to fix silent login
  • Loading branch information
rupato-deriv authored Feb 17, 2025
2 parents 342c474 + bf75d50 commit 496bd81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ function App() {
active_loginid_cookie: Cookies.get('active_loginid') || '{}',
active_loginid_local_storage: localStorage.getItem('active_loginid'),
});
if (client_accounts) {
localStorage.setItem('clientAccounts', JSON.stringify(client_accounts));
}
console.log('updated client accounts', JSON.parse(localStorage.getItem('clientAccounts') || '{}'));
const url_params = new URLSearchParams(window.location.search);
const account_currency = url_params.get('account');

Expand Down

0 comments on commit 496bd81

Please sign in to comment.