From fe5476d609be071340562216fd416dc2cbf5c615 Mon Sep 17 00:00:00 2001 From: Maxim Lanin Date: Mon, 17 Oct 2016 15:20:52 +0300 Subject: [PATCH] Change revoked field to be searched by boolean --- src/TokenRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TokenRepository.php b/src/TokenRepository.php index b07005725..26e624244 100644 --- a/src/TokenRepository.php +++ b/src/TokenRepository.php @@ -56,7 +56,7 @@ public function revokeAccessToken($id) */ public function isAccessTokenRevoked($id) { - return Token::where('id', $id)->where('revoked', 1)->exists(); + return Token::where('id', $id)->where('revoked', true)->exists(); } /**