darksoil-studio / p2p-shipyard

Ship cross-platform p2p apps
http://darksoil.studio/p2p-shipyard/
12 stars 4 forks source link

User-entered or randomly-generated + saved to disk Lair Password #60

Open mattyg opened 1 week ago

mattyg commented 1 week ago

Currently the scaffolded tauri app uses an empty password for lair. Instead it should scaffold apps with a login page that requires a password, or else generate a random password and save to disk in a file readable only by that app.

Ideally a password could be a pin code or biometric auth as well.

guillemcordoba commented 1 week ago

Hum I've always seen password input as an app level problem. Entering a password every time you open an app is just horrible UX, and there are numerous various ways to do it otherwise as you say, I would also add using the mobile OS keychain. How can the shipyard better support the app in these use cases while preserving good UX?

mattyg commented 1 week ago

My feeling is the default scaffolded app should have a secure setup. Ideally it is a user-level decision to compromise security for improved UX, but I can imagine an app developer may want to make a fixed decision for users as well.

I've briefly looked into the android keychain systems, and I'd hope that could offer better UX, but I don't know them well. Definitely worth exploring.