Skip to content

Commit

Permalink
Resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-borovov committed Jul 12, 2021
1 parent 3de6f68 commit 27ff32f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Grant/RefreshTokenGrant.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ public function respondToAccessTokenRequest(
if ($this->revokeRefreshTokens) {
$refreshToken = $this->issueRefreshToken($accessToken);

if ($refreshToken !== null) {
$this->dispatchEvent(new RefreshTokenIssued($refreshToken, $request));
$responseType->setRefreshToken($refreshToken);
if ($refreshToken !== null) {
$this->dispatchEvent(new RefreshTokenIssued($refreshToken, $request));
$responseType->setRefreshToken($refreshToken);
}
}

return $responseType;
Expand Down

0 comments on commit 27ff32f

Please sign in to comment.