You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this so I can get and publish message to relays:
const nip07signer = new NDKNip07Signer();
const ndk = new NDK({
explicitRelayUrls: [
...
],
signer: nip07signer
});
await ndk.connect(2000);
If a user tries to use this page with no Nostr extension, it fails with NIP-07 extension not available. I think it should create NDK and connect fine, and fail only when trying to do a write (publish), but it should work fine if the user is just trying to read (getUser or fetchEvents).
The text was updated successfully, but these errors were encountered:
ktecho
changed the title
Fail at connect with nip07signer if no extension present
Fail while creating NDK with nip07signer if no extension present
Dec 24, 2024
If you try to use a NIP-07 signer and one is not available it should fail; to be clear, the ndk creation and connection would happen, it’s just the instantiation of the signer when it can’t start is throwing
If you try to use a NIP-07 signer and one is not available it should fail; to be clear, the ndk creation and connection would happen, it’s just the instantiation of the signer when it can’t start is throwing
It fails while doing the new NDK for me, and then again while connecting.
I'm using this so I can get and publish message to relays:
If a user tries to use this page with no Nostr extension, it fails with
NIP-07 extension not available
. I think it should create NDK andconnect
fine, and fail only when trying to do awrite
(publish), but it should work fine if the user is just trying toread
(getUser or fetchEvents).The text was updated successfully, but these errors were encountered: