# See the configuration reference at https://symfony.com/bundles/SchebTwoFactorBundle/6.x/configuration.html
scheb_two_factor:
    security_tokens:
        # - Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
        - Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken
    email:
      enabled: true                  # If email authentication should be enabled, default false
      mailer: app.security.auth_code_mailer  # Use alternative service to send the authentication code
      digits: 6                      # Number of digits in authentication code
      template: security/twofactor.html.twig   # Template used to render the authentication form

    # If you want to have your own implementation to retrieve the whitelisted IPs.
    # The configuration option "ip_whitelist" becomes meaningless in that case.
    # Must implement Scheb\TwoFactorBundle\Security\TwoFactor\IpWhitelist\IpWhitelistProviderInterface
    ip_whitelist_provider: app.security.two_factor_trusted_ips
