Skip to content

Commit

Permalink
fix: added cookies to fix silent login
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Feb 17, 2025
1 parent 342c474 commit bf75d50
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 bf75d50

Please sign in to comment.