This will prevent the user from having to re-auth when they switch between accounts. I actually didn't really need to make any fundamental changes since we already hold the password in the memory. I'm just using the stored password to unlock the new account's keystore when we change accounts.
Also, making sure to clear out the stored password when the session time outs
Re-roll of PR #1630
https://github.com/stellar/freighter/issues/1495
This will prevent the user from having to re-auth when they switch between accounts. I actually didn't really need to make any fundamental changes since we already hold the password in the memory. I'm just using the stored password to unlock the new account's keystore when we change accounts.
Also, making sure to clear out the stored password when the session time outs