diff --git a/src/Guard.php b/src/Guard.php index ab7274f3..f360060d 100644 --- a/src/Guard.php +++ b/src/Guard.php @@ -113,12 +113,12 @@ protected function hasValidProvider($tokenable) */ protected function isValidAccessToken($accessToken): bool { - if (!$accessToken) { + if (! $accessToken) { return false; } $is_valid = - (!$this->expiration || $accessToken->created_at->gt(now()->subMinutes($this->expiration))) + (! $this->expiration || $accessToken->created_at->gt(now()->subMinutes($this->expiration))) && $this->hasValidProvider($accessToken->tokenable); if (is_callable(Sanctum::$validateCallback)) {