File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/java/main/com/cronos/onlinereview/util Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,11 @@ public JwtTokenUpdater check() throws Exception {
100
100
String [] tokenSplit = jwtCookieV3 .getValue ().split ("\\ ." );
101
101
if (tokenSplit .length <= 1 ) {
102
102
valid = false ;
103
- } else {
103
+ } /* else {
104
104
StringBuffer payloadStr = new StringBuffer(tokenSplit[1]);
105
- /* while (payloadStr.length() % 4 != 0) {
105
+ while (payloadStr.length() % 4 != 0) {
106
106
payloadStr.append('=');
107
- }*/
108
- payloadStr .append ('=' );
107
+ }
109
108
110
109
String payload = new String(Base64.decode(payloadStr.toString().getBytes(StandardCharsets.UTF_8)));
111
110
JsonNode jsonNode = objectMapper.readValue(payload.toString(), JsonNode.class);
@@ -116,7 +115,7 @@ public JwtTokenUpdater check() throws Exception {
116
115
if (expDate.before(new Date())) {
117
116
valid = false;
118
117
}
119
- }
118
+ }*/
120
119
}
121
120
if (jwtCookieV3 == null || !valid ) {
122
121
String newToken = getRefreshTokenFromApi (jwtCookieV2 .getValue ());
You can’t perform that action at this time.
0 commit comments