From 7e1da4395d01fd3a369300082f4791ab3a9862bb Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 24 Feb 2025 22:34:29 -0800 Subject: [PATCH] Build OAuth 2 plugin --- src-tauri/vendored/plugins/auth-oauth2/build/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/vendored/plugins/auth-oauth2/build/index.js b/src-tauri/vendored/plugins/auth-oauth2/build/index.js index 051fbda1..18026a40 100644 --- a/src-tauri/vendored/plugins/auth-oauth2/build/index.js +++ b/src-tauri/vendored/plugins/auth-oauth2/build/index.js @@ -107,7 +107,8 @@ async function resetDataDirKey(ctx, contextId) { return ctx.store.set(dataDirStoreKey(contextId), key); } async function getDataDirKey(ctx, contextId) { - return ctx.store.get(dataDirStoreKey(contextId)); + const key = await ctx.store.get(dataDirStoreKey(contextId)) ?? "default"; + return `${contextId}::${key}`; } function tokenStoreKey(context_id) { return ["token", context_id].join("::");