Build OAuth 2 plugin

This commit is contained in:
Gregory Schier
2025-02-24 22:34:29 -08:00
parent 7f8b0479e1
commit 7e1da4395d

View File

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