Skip to content

Commit 5359d7c

Browse files
authored
Merge pull request #67 from ydb-platform/fix-jwt-token
Fix JWT token
2 parents 525efa9 + 7e51087 commit 5359d7c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.5.4
2+
3+
* fixed jwt authentication
4+
15
## 1.5.3
26

37
* removed query id in prepare statement

src/Jwt/Jwt.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function issuedBy($value)
5454
*/
5555
public function issuedAt(DateTimeInterface $value)
5656
{
57-
$this->payload['iat'] = $value->format('U');
57+
$this->payload['iat'] = $value->getTimestamp();
5858
return $this;
5959
}
6060

@@ -64,7 +64,7 @@ public function issuedAt(DateTimeInterface $value)
6464
*/
6565
public function expiresAt(DateTimeInterface $value)
6666
{
67-
$this->payload['exp'] = $value->format('U');
67+
$this->payload['exp'] = $value->getTimestamp();
6868
return $this;
6969
}
7070

0 commit comments

Comments
 (0)