execute method

Future<AuthResponse> execute(
  1. String appPackageName,
  2. String authCode,
  3. String deviceId,
  4. String email,
)

Implementation

Future<AuthResponse> execute(String appPackageName, String authCode, String deviceId, String email) async {
  if (authCode.isEmpty) {
    return ErrorResponse("Invalid code", "Please enter a code");
  }

  return await this.remoteStorageDatasource.getRefreshTokenFromApi(appPackageName, authCode, deviceId, email);
}