MonoCloud Authentication SDK
    Preparing search index...

    Type Alias ProtectPagePageOnAccessDeniedType<P, Q>

    ProtectPagePageOnAccessDeniedType: (
        context: GetServerSidePropsContext<Q> & { user?: MonoCloudUser },
    ) => Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>

    Handler function triggered when a user is denied access in a Pages Router getServerSideProps flow.

    Type Parameters

    • P

      The type of the props.

    • Q extends ParsedUrlQuery = ParsedUrlQuery

      The type of the parsed query object.

    Type Declaration

      • (
            context: GetServerSidePropsContext<Q> & { user?: MonoCloudUser },
        ): Promise<GetServerSidePropsResult<P>> | GetServerSidePropsResult<P>
      • Parameters

        • context: GetServerSidePropsContext<Q> & { user?: MonoCloudUser }

          The server-side props context extended with the optional user object.

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

        The result for getServerSideProps.