Skip to content

Commit cece4ef

Browse files
Add return to revokeRefreshTokensByAccessTokenId method (#1693)
1 parent 8c52a69 commit cece4ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RefreshTokenRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ public function revokeRefreshToken($id)
5252
* Revokes refresh tokens by access token id.
5353
*
5454
* @param string $tokenId
55-
* @return void
55+
* @return mixed
5656
*/
5757
public function revokeRefreshTokensByAccessTokenId($tokenId)
5858
{
59-
Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]);
59+
return Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)