diff --git a/src/TokenRepository.php b/src/TokenRepository.php index 73fb059d4..e1d759b5b 100644 --- a/src/TokenRepository.php +++ b/src/TokenRepository.php @@ -63,7 +63,7 @@ public function getValidToken($user, $client) { return $client->tokens() ->whereUserId($user->getKey()) - ->whereRevoked(0) + ->where('revoked',0) ->where('expires_at', '>', Carbon::now()) ->first(); } @@ -117,7 +117,7 @@ public function findValidToken($user, $client) { return $client->tokens() ->whereUserId($user->getKey()) - ->whereRevoked(0) + ->where('revoked',0) ->where('expires_at', '>', Carbon::now()) ->latest('expires_at') ->first();