refreshUnsuccessful = function refreshUnsuccessful(
  currentTime,
  tokenExpireTime,
  callback
) {
  if (tokenExpireTime > currentTime) {
    // Cached token is still valid, return.
    callback(null);
  } else {
    // Token invalid, throw error requesting user to sso login.
    throw AWS.util.error(
      new Error('SSO Token refresh failed. Please log in using "aws sso login"'),
      { code: 'SSOTokenProviderFailure' }
    );
  }
}
Calls callback function with or without error based on provided times in case
of unsuccessful refresh.

@param currentTime [number] current time in milliseconds since ECMAScript epoch.
@param tokenExpireTime [number] token expire time in milliseconds since ECMAScript epoch.
@param callback [Function] Callback to call in case of error.