Skip to content

Commit 0ff3c32

Browse files
authored
fix errors in buildClerkProps docs (#2798)
1 parent a90284d commit 0ff3c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_partials/nextjs/build-clerk-props.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { GetServerSideProps } from 'next'
66

77
export const getServerSideProps: GetServerSideProps = async (ctx) => {
88
// Use `getAuth()` to access `isAuthenticated` and the user's ID
9-
const { isAuthenticated } = getAuth(ctx.req)
9+
const { isAuthenticated, userId } = getAuth(ctx.req)
1010

1111
// Protect the route by checking if the user is signed in
1212
if (!isAuthenticated) {

0 commit comments

Comments
 (0)