login method

Future login(
  1. String email,
  2. String password
)

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;
  }
}