feat(auth): add User, Cookie, Session entities + errors + config

This commit is contained in:
2026-05-05 00:38:49 +02:00
parent 54dc9d33d5
commit ceffd05063
7 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
type CookieAttributes = {
secure?: boolean;
path?: string;
domain?: string;
sameSite?: "lax" | "strict" | "none";
httpOnly?: boolean;
maxAge?: number;
expires?: Date;
};
export type Cookie = {
name: string;
value: string;
attributes: CookieAttributes;
};