freighter icon indicating copy to clipboard operation
freighter copied to clipboard

Unlock all accounts when entering password

Open piyalbasu opened this issue 5 months ago • 0 comments

Description

When entering user password, we currently only unlock the active keypair. So, when a user switches the account, they must re-enter their password to get the new keypair.

Instead of saving just the active account’s privateKey as string in redux, let’s save an object of type {[keyId]: privateKey }

that contains all available private keys. When we confirmPassword, we can iterate over all the key stores, unlocking each one and saving them into this one object.

Acceptance Criteria:

  • A user should only have to enter their password once and be able to freely switch between accounts without having to authenticate for 24h

  • after 24h, all private keys are removed from redux

  • when signing tx’s, we grab the private key associated with active keyId from the redux object

piyalbasu avatar Sep 24 '24 21:09 piyalbasu