create-prisma-php-app 5.0.0-alpha.7 → 5.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,11 +123,11 @@ final class AuthMiddleware
|
|
|
123
123
|
|
|
124
124
|
$verifyToken = $auth->verifyToken($jwt);
|
|
125
125
|
|
|
126
|
-
if ($verifyToken ===
|
|
126
|
+
if ($verifyToken === null) {
|
|
127
127
|
return false;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
return
|
|
130
|
+
return true;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
protected static function hasRequiredRole(string $requestPathname): string
|