diff --git a/src/actions/nostr.ts b/src/actions/nostr.ts index c6d7c944d..87f13f238 100644 --- a/src/actions/nostr.ts +++ b/src/actions/nostr.ts @@ -21,7 +21,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { let authorizedPubkey: string | undefined; - using bunker = new NBunker({ + const bunker = new NBunker({ relay, userSigner: signer, bunkerSigner: authorization.signer, @@ -64,6 +64,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { }); await dispatch(verifyCredentials(accessToken)); + bunker.close(); }; }