ff75c8ce2f
User Profile info, no game before login/register, menu bar --------- Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #2
29 lines
442 B
TypeScript
29 lines
442 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 {
|
|
token: string;
|
|
}
|
|
|
|
export interface CurrentUser {
|
|
id: string;
|
|
username: string;
|
|
rating: number;
|
|
createdAt: string;
|
|
}
|