nostr client devs who have not implemented nip-46 login yet, this is all it takes to sign an event using nip-46. Maybe we should add an example like this to the nostr-tools docs. Not sure if people realize it's this easy. I used nsec.app as my remote signer for testing. nsec.app logs a lot of info in the dev console when you send nip-46 requests which is helpful for debugging.
one line with nostr-hooks 👉 const { loginWithRemoteSigner } = useLogin();
Please Login to reply.
I just wasted a couple hours of my life. I could have just looked at your code. 😂
you did great, btw!
nostr-hooks ftw 🔥