Try fix oauth window creation

This commit is contained in:
Gregory Schier
2025-10-02 07:45:50 -07:00
parent 8a634b1056
commit 20bb89de33
5 changed files with 42 additions and 28 deletions

View File

@@ -88,9 +88,9 @@ export async function getAuthorizationCode(
const code = await new Promise<string>(async (resolve, reject) => {
let foundCode = false;
const { close } = await ctx.window.openUrl({
dataDirKey,
url: authorizationUrlStr,
label: 'oauth-authorization-url',
dataDirKey,
async onClose() {
if (!foundCode) {
reject(new Error('Authorization window closed'));