Skip to content

Commit

Permalink
Merge pull request #359 from mprausa/fix-expires-at-millis-calculation
Browse files Browse the repository at this point in the history
Fix calculation of expiration timestamp
  • Loading branch information
michael-doubez authored Aug 28, 2024
2 parents 1d3891c + 64d780c commit fd49d01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public OicCredentials(

if (expiresInSeconds != null && expiresInSeconds > 0) {
long allowedClockSkewFixed = Util.fixNull(allowedClockSkewSeconds, 60L);
this.expiresAtMillis = (currentTimestamp + expiresInSeconds + allowedClockSkewFixed) * 1000;
this.expiresAtMillis = currentTimestamp + (expiresInSeconds + allowedClockSkewFixed) * 1000;
} else {
this.expiresAtMillis = null;
}
Expand Down

0 comments on commit fd49d01

Please sign in to comment.