mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Revoke both refresh token and access token
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user