Skip to content

Commit

Permalink
Merge pull request #44 from tecome/master
Browse files Browse the repository at this point in the history
Fix Reusable deleteToken
  • Loading branch information
paragonie-security authored May 12, 2022
2 parents 87a81c3 + a5d11b3 commit 707b38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Reusable.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ public function deleteToken(array $token): bool
}
$dateTime = (new \DateTime($token['created-date']))->add($this->tokenLifetime);
$now = new \DateTime();
return $dateTime >= $now;
return $now >= $dateTime;
}
}

0 comments on commit 707b38c

Please sign in to comment.