STORY
Anyone managed to get nostr-connect to work in a project??I need a little help๐Ÿ™
AUTHOR
Joined 2022.06.04
DATE
VOTES
sats
COMMENTS

Anyone managed to get nostr-connect to work in a project??I need a little help๐Ÿ™

When I was preparing the 2nd part of the nostr workshop vidoe, I wanted to add support for nostr-connect since Tiero already did a tutorial video about that on the same repository that I'm working on.

I (almost) did exactly as what he did, but I needed to have a small minor things that are different.

However, it's not working correctly...

I'm able to connect to the remote signer successfully, but when I try to use any of its methods (sign, encrypt,...etc), nothing is happening at all.

I don't see a confirmation pop-up in the app or anything....

I spent half a day trying to debug the problem, but I wasn't able to figure it out.

I'm not sure if the problem is from the code, or from the nostrum app, or maybe I'm misunderstanding something.

The code for this is relatively very simple and straightforward.

This is the component that is creating the connection the first time: Connect Component

And this is the hook that is trying to use this connection: Using The Connection

If anyone has managed to get nostr-connect working in his project, then I'd greatly appreciate it if you could take a quick look at the code about and tell me if I'm doing things in a wrong way.

Thanks in advance ๐Ÿ™๐Ÿ™