From 32b6f78208ffbd6bd471b7a626ea1c1c1fadac27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <38153753+ilyakharev@users.noreply.github.com> Date: Tue, 6 Jun 2023 14:02:57 +0300 Subject: [PATCH 1/2] Update Jwt.php --- src/Jwt/Jwt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } From 7e51087278915d33915dbd84df9533fa8be0ed64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F?= <38153753+ilyakharev@users.noreply.github.com> Date: Tue, 6 Jun 2023 14:12:48 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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