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