Why Nostr? What is Njump?
2025-04-01 06:22:14
in reply to

cody on Nostr: The challenge needs to be sent in advance, otherwise, the client won't be able to ...

The challenge needs to be sent in advance, otherwise, the client won't be able to authenticate. Typically, the AUTH message can be sent when the connection is established, and the client will store the challenge to use it when necessary. If you prefer to send the AUTH message only when necessary, you must ensure that it is sent before the OK or CLOSED messages.
Author Public Key
npub1syjmjy0dp62dhccq3g97fr87tngvpvzey08llyt6ul58m2zqpzps9wf6wl