This commit is contained in:
2026-07-26 18:19:25 -05:00
parent b0e677d298
commit 32c8ccc3ed
15 changed files with 2679 additions and 36 deletions

8
src/session.ts Normal file
View File

@@ -0,0 +1,8 @@
/** The session is just the staff id in a cookie — one small team, one LAN. */
export const COOKIE = 'bizmatch_staff';
export function staffIdFromRequest(req: {
cookies: Record<string, string | undefined>;
}): string | null {
return req.cookies[COOKIE] ?? null;
}