login method
Implementation
Future<dynamic> login(String email, String password) async {
try {
final response = await api.post("/auth/login", data: {
"email": email,
"password": password,
});
return response.data;
} catch (e) {
rethrow;
}
}