default TokensAndUrlAuthData getResponseClass(String result) throws IOException {
    OAuth2TokenResponse response = new ObjectMapper().readValue(result, OAuth2TokenResponse.class);

    return new TokensAndUrlAuthData(
        response.getAccessToken(),
        response.getRefreshToken(),
        getTokenUrl());
  }
Returns the class that can deserialize the OAuth response.
libraries/auth/src/main/java/org/datatransferproject/auth/OAuth2Config.java