fiatjaf on Nostr: Once you get that error (with the "auth-required:" prefix), call await ...
Once you get that error (with the "auth-required:" prefix), call
await relay.auth(async (evt) => finalizeEvent(evt, secretKey))
Then try again.
Published at
2024-07-18 12:55:49Event JSON
{
"id": "452d4061d6ec6a4acab9b8f25d42525f4436104f075423f742c3b1f923a49209",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1721307349,
"kind": 1,
"tags": [
[
"client",
"gossip"
],
[
"p",
"2c7cc62a697ea3a7826521f3fd34f0cb273693cbe5e9310f35449f43622a5cdc"
],
[
"e",
"c1738e9cb35d40b0571b1fe2050185d2971bc77335063bd563670687696e308c",
"wss://a.nos.lol/",
"root"
],
[
"e",
"d22e57ee02557a24a970d7ec979c16870f9a965c53f0e856293834630d2e5872",
"wss://a.nos.lol/",
"reply"
]
],
"content": "Once you get that error (with the \"auth-required:\" prefix), call\n\n await relay.auth(async (evt) =\u003e finalizeEvent(evt, secretKey))\n\nThen try again.",
"sig": "d284aeb09b67de3876dff827432602fad4c1e53664ab180af77476e72f9422dfb0a658b05d13b5f9c133685b7fa5e6403baeae5f2f3f17422077409b20d22645"
}