Skip to content

Commit

Permalink
Update docs/upgrade-guides/node-to-express.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisintech authored Sep 30, 2024
1 parent c2244b2 commit 1d29449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/upgrade-guides/node-to-express.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1d29449

Please sign in to comment.