nip46: fix messages being ignored after auth_url.

This commit is contained in:
fiatjaf
2024-02-19 18:53:48 -03:00
parent 3647bbd68a
commit bded539122

View File

@@ -118,7 +118,7 @@ export class BunkerSigner {
const { id, result, error } = JSON.parse(await decrypt(clientSecretKey, event.pubkey, event.content))
if (result === 'auth_url' && waitingForAuth[id]) {
delete listeners[id]
delete waitingForAuth[id]
if (params.onauth) {
params.onauth(error)