If you wrap your getServerSideProps with WithPageAuthRequired your props object will be augmented with the user property, which will be the user's Claims.
getServerSideProps
// pages/profile.jsimport { withPageAuthRequired } from '@auth0/nextjs-auth0';export default function Profile({ user }) { return <div>Hello {user.name}</div>;}export const getServerSideProps = withPageAuthRequired(); Copy
// pages/profile.jsimport { withPageAuthRequired } from '@auth0/nextjs-auth0';export default function Profile({ user }) { return <div>Hello {user.name}</div>;}export const getServerSideProps = withPageAuthRequired();
If you wrap your
getServerSideProps
with WithPageAuthRequired your props object will be augmented with the user property, which will be the user's Claims.