diff --git a/src/TokenRepository.php b/src/TokenRepository.php index b75f341..0150242 100644 --- a/src/TokenRepository.php +++ b/src/TokenRepository.php @@ -39,7 +39,7 @@ public function save($token) public function findValidToken($user, $client) { return $client->tokens() - ->whereUserId($user->id) + ->whereUserId($user->_id) ->whereRevoked(0) ->where('expires_at', '>', Carbon::now()) ->latest('expires_at')