Skip to content

Commit

Permalink
Fix reject_before
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jan 7, 2024
1 parent 95eac51 commit e2075b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl<CustomClaims> JWTClaims<CustomClaims> {
let time_tolerance = options.time_tolerance.unwrap_or_default();

if let Some(reject_before) = options.reject_before {
ensure!(now <= reject_before, JWTError::OldTokenReused);
ensure!(now >= reject_before, JWTError::OldTokenReused);
}
if let Some(time_issued) = self.issued_at {
ensure!(time_issued <= now + time_tolerance, JWTError::ClockDrift);
Expand Down

0 comments on commit e2075b8

Please sign in to comment.