Files
memind_adm/server/local-auth.mjs
T
john 8af8676ad5 收口 memind_adm 主线并切换 103 为无源码产物发布。
统一共享用户/计费/空间额度能力,新增 Ops 与套餐同步,并以 release-prod.sh 作为唯一生产发布入口。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 12:31:25 +08:00

19 lines
561 B
JavaScript

// Legacy standalone auth was removed in favor of Memind shared user auth.
// Keep only generic cookie parsing helpers for the admin API container.
export function parseCookies(cookieHeader = '') {
return Object.fromEntries(
cookieHeader
.split(';')
.map((part) => {
const index = part.indexOf('=');
if (index < 0) return ['', ''];
return [
decodeURIComponent(part.slice(0, index).trim()),
decodeURIComponent(part.slice(index + 1).trim()),
];
})
.filter(([key]) => key),
);
}