diff --git a/src/Controllers/OAuthController.php b/src/Controllers/OAuthController.php index a3f7543a..fd83688a 100644 --- a/src/Controllers/OAuthController.php +++ b/src/Controllers/OAuthController.php @@ -138,7 +138,7 @@ class OAuthController extends BaseController ->where('identifier', $resourceId) ->get() // Explicit case sensitive comparison using PHP as some DBMS collations are case sensitive and some arent - ->where('identifier', '===', $resourceId) + ->where('identifier', '===', (string)$resourceId) ->first(); $expirationTime = $accessToken->getExpires();