fairDataSociety / fairdrive-theapp

The main app to browse Fairdrive.
GNU General Public License v3.0
21 stars 7 forks source link

Feat/metamask auto login #576

Closed tomicvladan closed 5 months ago

tomicvladan commented 8 months ago

Auto-login after refresh for Metamask users.

If the user selects "Remember Me" in the password modal, encrypted mnemonic is saved to the local storage. Mnemonic is encrypted with signature generated from the basic sentence. Next time when the user loads the app, if there is a saved mnemonic, the app will request again from the user to sign the same message and will use that signature to decrypt the mnemonic. After that, user will be redirected to drive.