Skip to content

Commit

Permalink
fix user id
Browse files Browse the repository at this point in the history
  • Loading branch information
moeen-basra committed Jan 7, 2017
1 parent 936afcf commit b008cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b008cdd

Please sign in to comment.