From 41790145a47e59c179bd3fd32bc1374c159cd6d0 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 5 Feb 2021 11:58:20 +0100 Subject: [PATCH] test middleware --- packages/dashboard/pages/api/hello.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dashboard/pages/api/hello.js b/packages/dashboard/pages/api/hello.js index d47dc5dd..2693b28f 100644 --- a/packages/dashboard/pages/api/hello.js +++ b/packages/dashboard/pages/api/hello.js @@ -35,7 +35,7 @@ export default async (req, res) => { await runMiddleware(req, res, middleware); console.log(Object.keys(req)); - console.log(user); + console.log(req.user); res.statusCode = 200; res.json({ name: "John Doe" }); };