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.