MonoCloud Authentication SDK
    Preparing search index...

    Type Alias ProtectPagePageOnAccessDeniedType<P, Q>

    ProtectPagePageOnAccessDeniedType: (
        context: GetServerSidePropsContext<Q>,
    ) => Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>

    Handler invoked when no valid session exists 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

      • (
            context: GetServerSidePropsContext<Q>,
        ): Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>
      • Parameters

        • context: GetServerSidePropsContext<Q>

          The Next.js getServerSideProps context.

        Returns Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>

        A getServerSideProps result.