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