config = $config; } protected function getTotp(): TOTPInterface { $otp = Factory::loadFromProvisioningUri( $this->config->totpUri(), $this->config->clock(), ); if ($otp instanceof TOTPInterface) { return $otp; } throw new HttpException(Response::HTTP_INTERNAL_SERVER_ERROR, 'Internal Server Error'); } }