@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public OneTimeTokenRepository oneTimeTokenAuthenticatorTokenRepository(
        final CasConfigurationProperties casProperties,
        @Qualifier("mongoDbGoogleAuthenticatorTemplate")
        final MongoOperations mongoDbGoogleAuthenticatorTemplate) {
        val mongo = casProperties.getAuthn().getMfa().getGauth().getMongo();
        return new GoogleAuthenticatorMongoDbTokenRepository(mongoDbGoogleAuthenticatorTemplate, mongo.getTokenCollection(),
            casProperties.getAuthn().getMfa().getGauth().getCore().getTimeStepSize());
    }
This is {@link CasGoogleAuthenticatorMongoDbAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-mongo/src/main/java/org/apereo/cas/config/CasGoogleAuthenticatorMongoDbAutoConfiguration.java