Merge branch 'bunker-no-using' into 'main'
Avoid `using` syntax See merge request soapbox-pub/soapbox!3230
This commit is contained in:
commit
f41e5e3f6b
|
@ -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();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue