Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/react-native-build…
Browse files Browse the repository at this point in the history
…er-bob-0.23.1
  • Loading branch information
poovamraj authored Oct 5, 2023
2 parents 5b126aa + 80c4d26 commit 61bb937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/java/com/auth0/react/A0Auth0Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ private void handleError(AuthenticationException error, Promise promise) {
promise.reject("a0.session.invalid_idtoken", "Error validating ID Token", error);
return;
}
promise.reject(error.getCode(), error.getMessage(), error);
String separator = error.getMessage().endsWith(".") ? "" : ".";
promise.reject(error.getCode(), error.getMessage() + separator + " CAUSE: " + error.getDescription(), error);
}

@Override
Expand Down

0 comments on commit 61bb937

Please sign in to comment.