Skip to content

Commit c85982a

Browse files
committed
Correct issued at
1 parent a6aaa4a commit c85982a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Fident.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function decodeJwtPayload(string $rawJwt): ?FidentJwtData
6767

6868
$data->setAccountType(Objects::property($payload, 'account_type'));
6969
$data->setExpiry(Objects::property($payload, 'exp'));
70-
$data->setIssuesAt(Objects::property($payload, 'iat'));
70+
$data->setIssuedAt(Objects::property($payload, 'iat'));
7171
$data->setIssuer(Objects::property($payload, 'iss'));
7272
$data->setTokenId(Objects::property($payload, 'sub'));
7373

src/UserData/FidentJwtData.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FidentJwtData
1919

2020
protected $_accountType;
2121
protected $_expiry;
22-
protected $_issuesAt;
22+
protected $_issuedAt;
2323
protected $_issuer;
2424
protected $_tokenId;
2525

@@ -140,19 +140,19 @@ public function setExpiry($expiry)
140140
/**
141141
* @return mixed
142142
*/
143-
public function getIssuesAt()
143+
public function getIssuedAt()
144144
{
145-
return $this->_issuesAt;
145+
return $this->_issuedAt;
146146
}
147147

148148
/**
149-
* @param mixed $issuesAt
149+
* @param mixed $issuedAt
150150
*
151151
* @return FidentJwtData
152152
*/
153-
public function setIssuesAt($issuesAt)
153+
public function setIssuedAt($issuedAt)
154154
{
155-
$this->_issuesAt = $issuesAt;
155+
$this->_issuedAt = $issuedAt;
156156
return $this;
157157
}
158158

tests/FidentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testDecodeJwtPayload()
4646
{
4747
$decoded = $this->_buildFident()->decodeJwtPayload($this->_testJwt());
4848
$this->assertEquals("account.fortifi.me:7180", $decoded->getIssuer());
49-
$this->assertEquals(1547828570, $decoded->getIssuesAt());
49+
$this->assertEquals(1547828570, $decoded->getIssuedAt());
5050
$this->assertEquals(1550420570, $decoded->getExpiry());
5151
$this->assertEquals("user", $decoded->getAccountType());
5252
$this->assertEquals("EFIDFIAT-ZG8XQTZLY-MISCR-7MMNMN9", $decoded->getTokenId());

0 commit comments

Comments
 (0)