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.
Published at
2025-04-01 06:22:14Event JSON
{
"id": "bdd28d9dfebd29654b5b782288132ca7a6385b611f5ae37f2a6075539608d121",
"pubkey": "8125b911ed0e94dbe3008a0be48cfe5cd0c0b05923cfff917ae7e87da8400883",
"created_at": 1743488534,
"kind": 1,
"tags": [
[
"e",
"3f24bf957917bca199b8815f10cf7cea11a9bdb60ef1f5d8a8ba072693cfb8c7",
"wss://relay.nostr.band/",
"root",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"e",
"05be34d934a9a3b2f466fd102613978a81ee11d8f6470fcc091c57034d1d70b3",
"wss://relay.damus.io/",
"reply",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"client",
"jumble"
]
],
"content": "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.",
"sig": "03a7c0f8f403e1c064de44c39ee751a616f5b49a583e5c4a22e789ba0918f82e762fd27cc35573c79254dce6d3953d7bc8c9c309cd94567344d15e81d69e4dbe"
}