Meet the latest Nostr-Login widget release!
Nostr-Login has become a very powerful window.nostr provider (as of v1.3.0).
Just drop the nostr-login script into your web app, and your users will be able to login with extension, with Nostr Connect, in read-only mode, sign up with OAuth-style flow, switch accounts, etc. Your app just calls window.nostr, the rest is handled by nostr-login.
Here is a short demo where I login with Nostr Connect, and then add a read-only account, and then switch between them. You can try it in action on https://nostr.band
https://v.nostr.build/POD38.mp4
App devs, if the only option you're giving your users is "Login with extension" (or even "Paste your nsec") then maybe it's time for an upgrade. The more options for people to log in, the more your app is used!
Learn more on how to set up nostr-login at https://github.com/nostrband/nostr-login
For other "login with Nostr" options, check out https://nostrlogin.org