laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.3k stars 781 forks source link

Return revokeRefreshTokensByAccessTokenId result #1692

Closed aminkhoshzahmat closed 1 year ago

aminkhoshzahmat commented 1 year ago

I was trying to check if the refresh token was revoked successfully, but the corresponding method revokeRefreshTokensByAccessTokenId doesn't return anything in RefreshTokenRepository.php

public function revokeRefreshTokensByAccessTokenId($tokenId)
{
    Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]);
}

Would it be possible to return the statement result?

driesvints commented 1 year ago

Looks like you already sent in a PR so let's see how it goes 👍

aminkhoshzahmat commented 1 year ago

@driesvints Thanks.