mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-26 06:59:49 +05:30
revoke an used auth code
This commit is contained in:
parent
7b803365f9
commit
03e8eb6157
@ -109,6 +109,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
||||
// Inject tokens into response type
|
||||
$responseType->setAccessToken($accessToken);
|
||||
$responseType->setRefreshToken($refreshToken);
|
||||
|
||||
// Revoke used auth code
|
||||
$this->authCodeRepository->revokeAuthCode($authCodePayload->auth_code_id);
|
||||
|
||||
return $responseType;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user