Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung committed Feb 27, 2021
1 parent fa739f9 commit 02813b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Service/JwtAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ public function logout(string $token = null)
}

$token = $service->parse($token);
$this->app->get('jwt.manager')->pushBlacklist($token);
$this->app->get('jwt.manager')->logout($token);
}
}
2 changes: 1 addition & 1 deletion src/Service/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function pushWhitelist(Token $token): void
$this->setCache($tag, $key, $token, $ttl);
}

public function pushBlacklist(Token $token): void
protected function pushBlacklist(Token $token): void
{
$jti = $token->claims()->get('jti');
$store = $token->claims()->get('store');
Expand Down

0 comments on commit 02813b2

Please sign in to comment.