mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-27 17:38:50 +05:00
25 lines
376 B
TypeScript
25 lines
376 B
TypeScript
|
|
export interface User {
|
||
|
|
_id: string;
|
||
|
|
email: string;
|
||
|
|
name: string;
|
||
|
|
isVerified: boolean;
|
||
|
|
createdAt: string;
|
||
|
|
updatedAt: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface LoginCredentials {
|
||
|
|
email: string;
|
||
|
|
password: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface RegisterCredentials {
|
||
|
|
email: string;
|
||
|
|
password: string;
|
||
|
|
name: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface AuthResponse {
|
||
|
|
user: User;
|
||
|
|
token: string;
|
||
|
|
}
|