diff --git a/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php b/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php index f6d64e72..6bbc3feb 100644 --- a/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php +++ b/src/Auth0/Login/Middleware/Auth0JWTMiddleware.php @@ -19,7 +19,7 @@ protected function getToken($request) { } protected function validateToken($token) { - return ($encUser !== ''); + return ($token !== ''); } public function handle($request, \Closure $next)