Skip to content

Commit

Permalink
Add small safety margin (#25)
Browse files Browse the repository at this point in the history
* Add small safety margin
  • Loading branch information
michielkalle authored Apr 20, 2023
1 parent 5df8e6e commit ce36900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JwtToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ public function isValid()
return false;
}

return (new \DateTime()) < $this->expiration;
return (new \DateTime('now + 1 seconds')) < $this->expiration;
}
}

0 comments on commit ce36900

Please sign in to comment.