Files
warren/frontend/types/auth.ts

16 lines
268 B
TypeScript

export type AuthSessionType = 'WarrenAuth';
export interface AuthSession {
type: AuthSessionType;
id: string;
user: AuthUser;
expiresAt: number;
}
export interface AuthUser {
id: string;
name: string;
email: string;
admin: boolean;
}