Files
NowChess-Frontend/src/app/models/auth.models.ts
T
shosho996 95eff42dfe fix: NCWF-4 Token Issues (#8)
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de>
Co-authored-by: shahdlala66 <shahd.lala66@gmail.com>
Reviewed-on: #8
2026-06-02 21:55:55 +02:00

30 lines
472 B
TypeScript

export interface LoginRequest {
username: string;
password: string;
}
export interface RegisterRequest {
username: string;
password: string;
email?: string;
}
export interface RegisterResponse {
id: string;
username: string;
rating: number;
createdAt: string;
}
export interface LoginResponse {
accessToken: string;
refreshToken: string;
}
export interface CurrentUser {
id: string;
username: string;
rating: number;
createdAt: string;
}