feat(auth): add User, Cookie, Session entities + errors + config
This commit is contained in:
15
packages/auth/src/entities/cookie.ts
Normal file
15
packages/auth/src/entities/cookie.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user