Skip to content
Snippets Groups Projects

Add slack in the other direction as well

2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline

Files

@@ -126,7 +126,8 @@ public class APIUserDetailsService implements
String apiSecret) {
long currentTime = now().toInstant(ZoneOffset.UTC).toEpochMilli();
if (!(details.getTimestamp() <= currentTime && currentTime <= details.getTimestamp() + EXPIRY_TIME)) {
if (!(details.getTimestamp() <= currentTime + EXPIRY_TIME
&& currentTime <= details.getTimestamp() + EXPIRY_TIME)) {
throw new CredentialsExpiredException(
"Expiry time reached: " + details.getTimestamp() + ", current: " + currentTime);
}
Loading