If you have a microapp relying on window.nostr, just drop a <script src="https://unpkg.com/window.nostr.js/dist/window.nostr.js"></script> at the bottom of your HTML and it will start working with NIP-46 and nostr:nprofile1qythwumn8ghj7un9d3shjtnswf5k6ctv9ehx2ap0qy2hwumn8ghj7un9d3shjtnyv9kh2uewd9hj7qgcwaehxw309aex2mrp0yhxxatjwfjkuapwveukjtcqyrafsj7hmweg9ur7zmn6apajdg48hxuskujx53rhrux0ttjcqx84yx35fg2 's OAuth-like flow.
Truth uncovered: this login flow has almost nothing to do with OAuth, it is actually much more similar to OpenID. Listen to the StackOverflow podcast episodes from 2008 and 2009.
hmm.. it is that easy..? I need to dive into NIP-46 now...
Nice! Added this to creatr.nostr.wine The connection string log in works great but I noticed it doesn’t populate any providers in the sign up flow. Also the wellorder relay is down.
Ok I lied - it does eventually load but it takes over a minute.
It’s due to a long timeout from https://lume.nu/.well-known/nostr.json?name=_ cc: @reya