The type of the props returned by getServerSideProps.
The type of the parsed query object.
OptionalauthParams?: ExtraAuthParamsAuthorization parameters to be used during authentication.
OptionalgetServerSideProps?: GetServerSideProps<P, Q>Function to fetch server-side props for the protected page handler. If provided, this function will be called before rendering the protected page.
OptionalonAccessDenied?: ProtectPagePageOnAccessDeniedType<P, Q>Alternate getServerSideProps function called when the user is not authenticated or is not a member of the specified groups.
OptionalreturnUrl?: stringSpecifies the URL to redirect to after authentication.
Options for configuring
protectPage()in the Pages Router.