Skip to content

Commit e45c21b

Browse files
formatting
1 parent 3634409 commit e45c21b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Handlers/TokenRevocationHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class TokenRevocationHandler extends AbstractTokenHandler
1212
public function respondToRequest(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
1313
{
1414
$client = $this->validateClient($request);
15-
[$tokenType, $token] = $this->validateToken($request, $client);
15+
[$tokenType, $tokenData] = $this->validateToken($request, $client);
1616

17-
if ($tokenType !== null && $token !== null) {
17+
if ($tokenType !== null && $tokenData !== null) {
1818
if ($tokenType === 'refresh_token') {
19-
$this->refreshTokenRepository->revokeRefreshToken($token['refresh_token_id']);
20-
$this->accessTokenRepository->revokeAccessToken($token['access_token_id']);
19+
$this->refreshTokenRepository->revokeRefreshToken($tokenData['refresh_token_id']);
20+
$this->accessTokenRepository->revokeAccessToken($tokenData['access_token_id']);
2121
} elseif ($tokenType === 'access_token') {
22-
$this->accessTokenRepository->revokeAccessToken($token['jti']);
22+
$this->accessTokenRepository->revokeAccessToken($tokenData['jti']);
2323
}
2424
}
2525

0 commit comments

Comments
 (0)