mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02: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);
|
return ctx.store.set(dataDirStoreKey(contextId), key);
|
||||||
}
|
}
|
||||||
async function getDataDirKey(ctx, contextId) {
|
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) {
|
function tokenStoreKey(context_id) {
|
||||||
return ["token", context_id].join("::");
|
return ["token", context_id].join("::");
|
||||||
|
|||||||
Reference in New Issue
Block a user