Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.dev

Pages (getServerSideProps)

Please note the addition of buildClerkProps in the return statement, which informs our React helpers of the authentication state during server-side rendering (like useAuth(), <SignedIn>, and <SignedOut>).

Optionally, use the Preload User example to make user profile data available during server-side rendering.

1
1

Before Next.js 12.2

1
1

Example Response

More detailed information about the fields in this object can be found in the Authentication Object documentation.

Was this helpful?

Clerk © 2022