mattn on Nostr: Could you please provide example to use auth() ? Currently, relay.subscribe() return ...
Could you please provide example to use auth() ? Currently, relay.subscribe() return this error.
>relay connection closed auth-required: trying to read from a private group
Published at
2024-07-18 12:46:19Event JSON
{
"id": "d22e57ee02557a24a970d7ec979c16870f9a965c53f0e856293834630d2e5872",
"pubkey": "2c7cc62a697ea3a7826521f3fd34f0cb273693cbe5e9310f35449f43622a5cdc",
"created_at": 1721306779,
"kind": 1,
"tags": [
[
"e",
"c1738e9cb35d40b0571b1fe2050185d2971bc77335063bd563670687696e308c",
"",
"root"
],
[
"e",
"056479611e13cb046ad5ae8d4e12a480c4e22fe961be798a334319d5695aac8f",
"",
"reply"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
]
],
"content": "Could you please provide example to use auth() ? Currently, relay.subscribe() return this error.\n\n\u003erelay connection closed auth-required: trying to read from a private group",
"sig": "e04672395b62d6489049c7e30927b489254355e65e8aada8a254e567e0730c458c84305425bf2cd2db5113e0aec477d80bea20b0d568223f61fe43382d7dbc61"
}