public function beginAuthentication(AuthenticationContextInterface $context)
{
$request = $context->getRequest();
$user = $context->getUser();
$context->setUseTrustedOption($this->useTrustedOption);
// Skip two-factor authentication on trusted computers
if ($context->useTrustedOption() && $this->cookieManager->isTrustedComputer($request, $user)) {
return;
}
$this->authHandler->beginAuthentication($context);
}