95eff42dfe
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Co-authored-by: shahdlala66 <shahd.lala66@gmail.com> Reviewed-on: #8
30 lines
472 B
TypeScript
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;
|
|
}
|