ProtectPagePageOnGroupAccessDeniedType<P,Q> = (context:ProtectPageGetServerSidePropsContext<Q>) =>Promise<GetServerSidePropsResult<P>> |GetServerSidePropsResult<P>
Handler invoked when an authenticated user does not satisfy the required group restrictions while running a Pages Router getServerSideProps protected by protectPage().
| Type Parameter | Description |
|---|---|
P | Props returned from getServerSideProps. |
Q extends ParsedUrlQuery | Query parameters parsed from the URL. |
| Parameter | Type | Description |
|---|---|---|
context | ProtectPageGetServerSidePropsContext<Q> | The Next.js getServerSideProps context. |
Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>
A getServerSideProps result.