From cece4efda933219002d95f3d5d03509e9ed29a14 Mon Sep 17 00:00:00 2001 From: Amin Date: Mon, 16 Oct 2023 23:34:42 +0330 Subject: [PATCH] Add return to revokeRefreshTokensByAccessTokenId method (#1693) --- src/RefreshTokenRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RefreshTokenRepository.php b/src/RefreshTokenRepository.php index ded3b0a85..bca0269e3 100644 --- a/src/RefreshTokenRepository.php +++ b/src/RefreshTokenRepository.php @@ -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]); } /**