To protect your private keys when using web apps, you can use Nostr Signing Extensions. These include:
Alby: Lightning wallet with Nostr integration
Nostore: Safari on iOS (TestFlight)
Flamingo: Chrome
Nos2x-fox: Firefox
Nos2x: Chrome
Protect your Private Keys!