Skip to content

Commit

Permalink
Fix missing parens in requireAuth() (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSection authored Nov 15, 2024
1 parent 4fbff20 commit 7804c0e
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 7804c0e

Please sign in to comment.