Replying to Avatar brugeman

New iframe-based signing coming to nsec.app and nostr-login!

Many of you have tried nsec.app and had issues. It might be slow and unreliable, because it involves talking over relays and waking up the signer using web push. iOS users had to keep nsec.app tab open to make it work.

Now check out this demo:

https://v.nostr.build/sajUBBgYejAShlcr.mp4

Basically, client app (or a library like nostr-login) can embed signer (nsec.app) as an invisible iframe and talk to it using browser APIs. Talking to your keys no longer involves relays or web push - it's instantaneous! Works perfectly fine on iOS Safari.

We're releasing the updated nostr-login on https://npub.pro, https://nostr.band and on https://primal.nostrapps.org for you to try it. If all goes well and public scrutiny doesn't kill this, we'll publish the new nostr-login on unpkg and every app using it will get a boost with nsec.app.

The NIP proposal is here: https://github.com/nostr-protocol/nips/pull/1557

I encourage web client devs to check it out, maybe this is how we take safe key access to the next level of usability on the web!

Nice, I was just about to send you a DM that it never imports keys on Brave on ios

Reply to this note

Please Login to reply.

Discussion

Could you please try with https://primal.nostrapps.org? Can you use nsec.app with Brave on iOS there?

It stays stuck when importing key

Oh ok thanks for the report! Will look into it

Heads up... I signed up from desktop... and the login also exhibits the same behavior on mobile (infinite loading on button)

fwiw it must be a webkit issue as I tried other browsers. I'm also using lockdown mode... So let me know if you'd like me to test with it disabled.