authenticate method

Future<Response> authenticate(
  1. String email,
  2. String password
)

Authenticates the users services and returns Future<http.Response>

Implementation

Future<http.Response> authenticate(String email, String password) {
  var url = wsURL + 'authenticate';
  return http
      .post(Uri.parse(url), body: {'email': email, 'password': password});
}