execute method

Future<AuthResponse> execute(
  1. String refreshToken
)

Implementation

Future<AuthResponse> execute(String refreshToken) async {
  if (refreshToken.isEmpty) {
    return ErrorResponse(400, "Invalid refresh Token", "Please enter a code");
  }

  var authResponse = await _remoteStorageDatasource.getAccessTokenFromApi(refreshToken);

  return authResponse;
}