summaryrefslogtreecommitdiffstats
path: root/api/nostr/v1/nostrv1connect
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-15 09:03:45 -0800
committerbndw <ben@bdw.to>2026-02-15 09:03:45 -0800
commit9b97943680a9675809f942a75c0a8ea4747ce5bb (patch)
tree379e9971202a47d7152bce5bb16addc6371ea763 /api/nostr/v1/nostrv1connect
parent71f7a444398275923246e1bc8283938a63a8267a (diff)
fix: send OK response when AUTH required but not completed
Previously when an EVENT was received before authentication was completed, the relay would send an AUTH challenge but silently drop the EVENT without sending an OK response. This caused clients to timeout waiting for the OK that never came. Now the relay immediately sends OK false with "auth-required" message, so clients know the EVENT was rejected and can retry after AUTH completes. Also optimized to parse the event JSON only once instead of twice.
Diffstat (limited to 'api/nostr/v1/nostrv1connect')
0 files changed, 0 insertions, 0 deletions