mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
nip46: fix messages being ignored after auth_url.
This commit is contained in:
2
nip46.ts
2
nip46.ts
@@ -118,7 +118,7 @@ export class BunkerSigner {
|
|||||||
const { id, result, error } = JSON.parse(await decrypt(clientSecretKey, event.pubkey, event.content))
|
const { id, result, error } = JSON.parse(await decrypt(clientSecretKey, event.pubkey, event.content))
|
||||||
|
|
||||||
if (result === 'auth_url' && waitingForAuth[id]) {
|
if (result === 'auth_url' && waitingForAuth[id]) {
|
||||||
delete listeners[id]
|
delete waitingForAuth[id]
|
||||||
|
|
||||||
if (params.onauth) {
|
if (params.onauth) {
|
||||||
params.onauth(error)
|
params.onauth(error)
|
||||||
|
|||||||
Reference in New Issue
Block a user