We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a90284d commit 0ff3c32Copy full SHA for 0ff3c32
docs/_partials/nextjs/build-clerk-props.mdx
@@ -6,7 +6,7 @@ import { GetServerSideProps } from 'next'
6
7
export const getServerSideProps: GetServerSideProps = async (ctx) => {
8
// Use `getAuth()` to access `isAuthenticated` and the user's ID
9
- const { isAuthenticated } = getAuth(ctx.req)
+ const { isAuthenticated, userId } = getAuth(ctx.req)
10
11
// Protect the route by checking if the user is signed in
12
if (!isAuthenticated) {
0 commit comments