MonoCloud Authentication SDK
    Preparing search index...

    Type Alias ProtectPagePageOnGroupAccessDeniedType<P, Q>

    ProtectPagePageOnGroupAccessDeniedType: (
        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 Parameters

    • P

      Props returned from getServerSideProps.

    • Q extends ParsedUrlQuery = ParsedUrlQuery

      Query parameters parsed from the URL.

    Type Declaration