Skip to content

Commit

Permalink
Update express.mdx (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
va24nsh authored Oct 18, 2024
1 parent 5760286 commit 592842d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/quickstarts/express.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit 592842d

Please sign in to comment.