Close the bunker manually due to `using` not working

This commit is contained in:
Alex Gleason 2024-10-29 16:42:40 -05:00
parent 9faf9942a9
commit 46687a0a02
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 1 deletions

View File

@ -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();
};
}