diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a6eb23d..f6b95591 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.5.4 + +* fixed jwt authentication + ## 1.5.3 * removed query id in prepare statement diff --git a/src/Jwt/Jwt.php b/src/Jwt/Jwt.php index 0df4997b..0999cf7e 100644 --- a/src/Jwt/Jwt.php +++ b/src/Jwt/Jwt.php @@ -54,7 +54,7 @@ public function issuedBy($value) */ public function issuedAt(DateTimeInterface $value) { - $this->payload['iat'] = $value->format('U'); + $this->payload['iat'] = $value->getTimestamp(); return $this; } @@ -64,7 +64,7 @@ public function issuedAt(DateTimeInterface $value) */ public function expiresAt(DateTimeInterface $value) { - $this->payload['exp'] = $value->format('U'); + $this->payload['exp'] = $value->getTimestamp(); return $this; }