mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Revoke both refresh token and access token
This commit is contained in:
parent
0b061e3086
commit
b57b497cb7
@ -165,8 +165,9 @@ class RefreshTokenGrant extends AbstractGrant
|
||||
$accessToken->addScope($scope);
|
||||
}
|
||||
|
||||
// Expire the old token and save the new one
|
||||
$this->accessTokenRepository->revokeAccessToken($oldRefreshToken->getClaim('accessToken'));
|
||||
// Expire the old tokens and save the new one
|
||||
$this->accessTokenRepository->revokeAccessToken($oldRefreshTokenData['access_token_id']);
|
||||
$this->refreshTokenRepository->revokeRefreshToken($oldRefreshTokenData['refresh_token_id']);
|
||||
|
||||
// Generate a new refresh token
|
||||
$refreshToken = new RefreshTokenEntity();
|
||||
|
Loading…
Reference in New Issue
Block a user