diff --git a/src/actions/nostr.ts b/src/actions/nostr.ts index e9aec6dd8..b639537a3 100644 --- a/src/actions/nostr.ts +++ b/src/actions/nostr.ts @@ -20,7 +20,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, @@ -61,6 +61,9 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { }); await dispatch(verifyCredentials(accessToken)); + + // TODO: get rid of `vite-plugin-require` and switch to `using` for the bunker. :( + bunker.close(); }; }