@Override
              public void onTokenErrorResponse(Credential credential,
                  TokenErrorResponse tokenErrorResponse) throws IOException {
                monitor
                    .info(() -> "Error while refreshing token: " + tokenErrorResponse.getError());
              }
Creates a {@link Credential} objects with the given {@link TokensAndUrlAuthData} which supports
refreshing tokens.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/common/GoogleCredentialFactory.java