@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public OneTimeTokenRepository oneTimeTokenAuthenticatorTokenRepository(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties,
        @Qualifier("redisAccountsGoogleAuthenticatorTemplate")
        final CasRedisTemplate redisAccountsGoogleAuthenticatorTemplate) {
        return BeanSupplier.of(OneTimeTokenRepository.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> {
                val gauth = casProperties.getAuthn().getMfa().getGauth();
                return new GoogleAuthenticatorRedisTokenRepository(redisAccountsGoogleAuthenticatorTemplate,
                    gauth.getCore().getTimeStepSize(), gauth.getRedis().getScanCount());
            })
            .otherwiseProxy()
            .get();
    }
This is {@link CasGoogleAuthenticatorRedisAutoConfiguration}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-gauth-redis/src/main/java/org/apereo/cas/config/CasGoogleAuthenticatorRedisAutoConfiguration.java