@Override
    public GoogleAuthenticatorToken store(final GoogleAuthenticatorToken token) {
        return (GoogleAuthenticatorToken) mongoTemplate.save(token.assignIdIfNecessary(), this.collectionName);
    }
This is {@link GoogleAuthenticatorMongoDbTokenRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gauth-mongo/src/main/java/org/apereo/cas/gauth/token/GoogleAuthenticatorMongoDbTokenRepository.java