Merge branch 'bunker-no-using' into 'main'

Avoid `using` syntax

See merge request soapbox-pub/soapbox!3230
This commit is contained in:
Alex Gleason 2024-11-10 07:16:06 +00:00
commit f41e5e3f6b
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
let authorizedPubkey: string | undefined; let authorizedPubkey: string | undefined;
using bunker = new NBunker({ const bunker = new NBunker({
relay, relay,
userSigner: signer, userSigner: signer,
bunkerSigner: authorization.signer, bunkerSigner: authorization.signer,
@ -64,6 +64,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) {
}); });
await dispatch(verifyCredentials(accessToken)); await dispatch(verifyCredentials(accessToken));
bunker.close();
}; };
} }