execute method

Future<AuthResponse> execute(
  1. String appColor,
  2. String appName,
  3. String email
)

Implementation

Future<AuthResponse> execute(String appColor, String appName, String email) async {

  if (!authEmailValidator.validate(email)) {
    const message = "Invalid email";
    return ErrorResponse(400, message, "Please verify that your email address is correct");
  }

  final AuthResponse response = await this.remoteStorageDatasource.getAuthCodeFromApi(appColor, appName, email);
  return response;
}