From 592842d7d50436bbcaf089a80596a6930cfc922d Mon Sep 17 00:00:00 2001 From: Vansh Maurya <72353067+va24nsh@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:33:44 +0530 Subject: [PATCH] Update express.mdx (#1636) --- docs/quickstarts/express.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quickstarts/express.mdx b/docs/quickstarts/express.mdx index bc0743b576..f645a7a5e6 100644 --- a/docs/quickstarts/express.mdx +++ b/docs/quickstarts/express.mdx @@ -120,7 +120,7 @@ Learn how to integrate Clerk into your Express backend for secure user authentic const app = express() - app.get('/protected', requireAuth({ signInUrl: '/sign-in' }), (req, res) => { + app.get('/protected', requireAuth({ signInUrl: '/sign-in' }), async (req, res) => { const { userId } = req.auth const user = await clerkClient.users.getUser(userId) return res.json({ user })