16 lines
276 B
TypeScript
16 lines
276 B
TypeScript
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;
|
|
};
|