Skip to content

Commit bc5a41f

Browse files
author
Sachin Maheshwari
committed
testing...
1 parent d9c91b0 commit bc5a41f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/java/main/com/cronos/onlinereview/util/JwtTokenUpdater.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,11 @@ public JwtTokenUpdater check() throws Exception {
100100
String[] tokenSplit = jwtCookieV3.getValue().split("\\.");
101101
if (tokenSplit.length <= 1) {
102102
valid = false;
103-
} else {
103+
} /*else {
104104
StringBuffer payloadStr = new StringBuffer(tokenSplit[1]);
105-
/*while (payloadStr.length() % 4 != 0) {
105+
while (payloadStr.length() % 4 != 0) {
106106
payloadStr.append('=');
107-
}*/
108-
payloadStr.append('=');
107+
}
109108
110109
String payload = new String(Base64.decode(payloadStr.toString().getBytes(StandardCharsets.UTF_8)));
111110
JsonNode jsonNode = objectMapper.readValue(payload.toString(), JsonNode.class);
@@ -116,7 +115,7 @@ public JwtTokenUpdater check() throws Exception {
116115
if (expDate.before(new Date())) {
117116
valid = false;
118117
}
119-
}
118+
}*/
120119
}
121120
if (jwtCookieV3 == null || !valid) {
122121
String newToken = getRefreshTokenFromApi(jwtCookieV2.getValue());

0 commit comments

Comments
 (0)