tcl-guessr/src/lib/auth/index.ts
uku df35978722
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 34s
feat(deps): update to arctic 3
2025-02-04 14:41:54 +01:00

21 lines
349 B
TypeScript

export type SessionValidationResult =
| { session: Session; user: User }
| { session: null; user: null };
export interface Session {
id: string;
userId: string;
expiresAt: Date;
}
export interface User {
id: string;
name: string;
avatarHash: string;
}
export interface CookieData {
state: string;
codeVerifier: string;
next: string;
}