Wtf, how does this work from the browser?
Discussion
Nostrudel.ninja works this way too. I'm just a pleb so I'm not sure how it works, but it makes using anything built on Nostr frictionless. This is a killer feature for me.
I need to know so I can add this to cashu.me - nostr:nprofile1qqszv6q4uryjzr06xfxxew34wwc5hmjfmfpqn229d72gfegsdn2q3fgpr3mhxue69uhhxct5v4kxc6t5v5hxs7njvscngwfwvdhk6tcpzfmhxue69uhkummnw3e82efwvdhk6tcpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsk7wj75 halp ser!
I think you just need to implement login via nostr-login and you are set https://github.com/nostrband/nostr-login
Looks like this is using the nostrconnect:// URI
https://github.com/nostr-protocol/nips/blob/master/46.md#direct-connection-initiated-by-the-client
The client creates a new key and puts it in the URI with some metadata, then the user can open the link in amber and it will ask the user to create a bunker.
Then when the user gets redirected back to the app the connection should be ready
The code I'm using in noStrudel is from my library applesauce https://hzrd149.github.io/applesauce/signers/nostr-connect.html#initiating-connection-from-client
Although it looks like this app is using https://www.npmjs.com/package/window.nostr.js which is just as good and maybe better suited for an app like cashu.me
Deeplinking does not work on Graphene OS yet
