private void writeAccountsToJsonRepository(final Map<String, List<OneTimeTokenAccount>> accounts) {
        FunctionUtils.doUnchecked(__ -> {
            if (location.getFile() != null) {
                LOGGER.debug("Saving [{}] google authenticator accounts to JSON file at [{}]", accounts.size(), location.getFile());
                serializer.to(location.getFile(), accounts);
            }
        });
    }
This is {@link JsonGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/credential/JsonGoogleAuthenticatorTokenCredentialRepository.java