Skip to content

Commit cb79cdb

Browse files
authored
Merge pull request #24 from vivetiwa/PLATIR-14853-fix-jwt-token-expiry
#25 Fix JWT token expiry
2 parents da4a2e6 + 8faeb12 commit cb79cdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
##
1212

1313
group=com.adobe.platform.streaming
14-
versionMain=0.0.5
14+
versionMain=0.0.6
1515
versionQualifier=
1616

1717
param_artifactory_user=

streaming-connect-common/src/main/java/com/adobe/platform/streaming/auth/impl/JWTTokenProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private boolean isJWTExpired() {
154154
);
155155
JSONObject tokenBodyJson = new JSONObject(tokenBody);
156156
long expiresIn = ((Number)tokenBodyJson.get(JWT_EXPIRY_KEY)).longValue();
157-
return System.currentTimeMillis() <= (expiresIn - DEFAULT_JWT_TOKEN_UPDATE_THRESHOLD);
157+
return System.currentTimeMillis() > (expiresIn - DEFAULT_JWT_TOKEN_UPDATE_THRESHOLD);
158158
} catch (UnsupportedEncodingException exception) {
159159
LOG.error("Exception while parsing JWT token", exception);
160160
}

0 commit comments

Comments
 (0)