Skip to content

Commit c21bcb9

Browse files
committed
Change code to make it more clear that we're skipping the beginning of the JSONP
What we need is the JSON that is used as parameter in the JSONP call
1 parent 7021a91 commit c21bcb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/auth0/authentication/api/internal/ApplicationInfoRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private Application parseJSONP(Response response) {
9999
if (json.length() < 16) {
100100
throw new JSONException("Invalid App Info JSONP");
101101
}
102-
json = json.substring(16); // replaces tokenizer.skipPast("Auth0.setClient(") because official (not android's) org.json does not have the method
102+
json = json.substring("Auth0.setClient(".length()); // replaces tokenizer.skipPast("Auth0.setClient(") because official (not android's) org.json does not have the method
103103
JSONTokener tokenizer = new JSONTokener(json);
104104
if (!tokenizer.more()) {
105105
throw tokenizer.syntaxError("Invalid App Info JSONP");

0 commit comments

Comments
 (0)