Skip to content

Commit

Permalink
Add return to revokeRefreshTokensByAccessTokenId method (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminkhoshzahmat authored Oct 16, 2023
1 parent 8c52a69 commit cece4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RefreshTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public function revokeRefreshToken($id)
* Revokes refresh tokens by access token id.
*
* @param string $tokenId
* @return void
* @return mixed
*/
public function revokeRefreshTokensByAccessTokenId($tokenId)
{
Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]);
return Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]);
}

/**
Expand Down

0 comments on commit cece4ef

Please sign in to comment.