mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-22 17:39:12 +01:00
Build OAuth 2 plugin
This commit is contained in:
@@ -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("::");
|
||||
|
||||
Reference in New Issue
Block a user