nbd-wtf / nostr-tools

Tools for developing Nostr clients.
The Unlicense
705 stars 197 forks source link

NIP-42 problems #336

Closed Bill0106 closed 10 months ago

Bill0106 commented 10 months ago

I find that the auth method only sends the message and does not provide a method to retrieve the response, whether it's OK or not.

I have some REQ messages that need to be sent after authorization. How can I use the auth method correctly to receive the OK response?

fiatjaf commented 10 months ago

Indeed I wanted to make auth() return a Promise like publish(), but I forgot.