Skip to content

Commit 3e5d469

Browse files
committed
update
1 parent a37ec6a commit 3e5d469

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Service/JwtAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function token($identifier, array $claims = []): Token
7373
* @param string $token
7474
* @return boolean
7575
*/
76-
public function verify(?string $token): bool
76+
public function verify(string $token = null): bool
7777
{
7878
$service = $this->app->get('jwt.token');
7979
if (!$token) {

src/Service/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function login(Token $token): void
5555
protected function handleSSO(Token $token): void
5656
{
5757
$jti = $token->claims()->get('jti');
58-
$store = $token->claims()->get()('store');
58+
$store = $token->claims()->get('store');
5959

6060
$this->destroyToken($jti, $store);
6161
}

src/Service/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function find()
7171
{
7272
$class = $this->getClass();
7373
$token = $this->app->get('jwt.token')->getToken();
74-
$uid = $token->getHeader('jti');
74+
$uid = $token->claims()->get('jti');
7575

7676
$model = new $class();
7777
return $model->find($uid);

0 commit comments

Comments
 (0)