Files
WealthWise/src/types/auth.ts

28 lines
464 B
TypeScript
Raw Normal View History

export interface User {
id: string;
email: string;
is_active: boolean;
is_superuser: boolean;
created_at: string;
}
export interface LoginCredentials {
email: string;
password: string;
}
export interface RegisterCredentials {
email: string;
password: string;
}
export interface AuthResponse {
access_token: string;
token_type: string;
}
export interface AuthState {
user: User | null;
isLoading: boolean;
isAuthenticated: boolean;
}