feat(backoffice): implement login and logout

- Tambah fitur login dan logout pada Backoffice
- Ubah port development server dan atasi CORS
- Update type login response
- Update component Input agar toggle password berfungsi dengan benar
This commit is contained in:
Hafid Nur
2025-04-03 06:10:07 +07:00
parent 2602657201
commit a9cc728ade
5 changed files with 36 additions and 6 deletions
+18
View File
@@ -10,9 +10,27 @@ export type TLoginResponse = {
refresh_token: string;
};
user: {
role: {
id: string;
name: string;
permission: [
{
id: string;
name: string;
created_at: string;
updated_at: string;
}
]
created_at: string;
updated_at: string;
};
fullname: string;
email: string;
avatar: string;
phone_number: string;
is_active: boolean;
gender: string;
birthdate: string;
};
};
};