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.
2 parents ed4b68d + e4055d2 commit 58dcf29Copy full SHA for 58dcf29
iterableapi/src/main/java/com/iterable/iterableapi/IterableAuthManager.java
@@ -156,6 +156,10 @@ public void run() {
156
private static long decodedExpiration(String encodedJWT) throws Exception {
157
long exp = 0;
158
String[] split = encodedJWT.split("\\.");
159
+ //Check if jwt is valid
160
+ if (split.length != 3) {
161
+ throw new IllegalArgumentException("Invalid JWT");
162
+ }
163
String body = getJson(split[1]);
164
JSONObject jObj = new JSONObject(body);
165
exp = jObj.getLong(expirationString);
0 commit comments