diff --git a/docs/upgrade-guides/node-to-express.mdx b/docs/upgrade-guides/node-to-express.mdx index 3f41a19fcb..37bfdcbe79 100644 --- a/docs/upgrade-guides/node-to-express.mdx +++ b/docs/upgrade-guides/node-to-express.mdx @@ -70,7 +70,7 @@ app.listen(port, () => { ## `requireAuth()` usage changes -In the Node SDK, `requireAuth()` wrapped route handlers. With the Express SDK, you must instead pass `requireAuth)` as a middleware function before your handler instead of wrapping your handler. Additionally, `requireAuth()` will now redirect un-authenticated users to the sign in page, where previously it would emit an error. +In the Node SDK, `requireAuth()` wrapped route handlers. With the Express SDK, you must instead pass `requireAuth()` as a middleware function before your handler instead of wrapping your handler. Additionally, `requireAuth()` will now redirect un-authenticated users to the sign in page, where previously it would emit an error. ```ts {{ del: [1, 4], ins: [2, 5] }} import { requireAuth } from '@clerk/clerk-sdk-node'