@Override
    public GoogleAuthenticatorToken store(final GoogleAuthenticatorToken token) {
        return FunctionUtils.doUnchecked(() -> {
            val gToken = new JpaGoogleAuthenticatorToken();
            BeanUtils.copyProperties(gToken, token);
            gToken.setUserId(gToken.getUserId().trim().toLowerCase(Locale.ENGLISH));
            return entityManager.merge(gToken);
        });
    }
This is {@link GoogleAuthenticatorJpaTokenRepository}.

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