check()) { return response()->json(['error' => 'Already authenticated.'], 400); } return $next($request); } }