mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-20 22:53:27 +05:30
revoke an used auth code
This commit is contained in:
1 parent
7b803365f9
commit
03e8eb6157
1 file changed
+3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user