We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a88ff5 commit 7ef3e9eCopy full SHA for 7ef3e9e
src/main/java/com/docusign/esign/client/auth/OAuth.java
@@ -85,7 +85,7 @@ public synchronized void updateAccessToken() {
85
throw new ClientHandlerException(e.getMessage(), e);
86
}
87
if (accessTokenResponse != null && accessTokenResponse.getAccessToken() != null) {
88
- if ((!accessTokenResponse.has("access_token")) || (!accessTokenResponse.has("expires_in"))) {
+ if ((accessTokenResponse.getAccessToken() == null || (accessTokenResponse.getExpiresIn() == null)) {
89
throw new ClientHandlerException("Error while requesting an access token: " + accessTokenResponse);
90
91
setAccessToken(accessTokenResponse.getAccessToken(), accessTokenResponse.getExpiresIn());
0 commit comments