MonoCloud Authentication SDK
    Preparing search index...
    ProtectPageOptions: {
        authParams?: ExtraAuthParams;
        onAccessDenied?: (user?: MonoCloudUser) => JSX.Element;
        onError?: (error: Error) => JSX.Element;
        returnUrl?: string;
    } & GroupOptions

    Options for configuring page protection.

    Type Declaration

    • OptionalauthParams?: ExtraAuthParams

      Authorization parameters to be used during authentication.

    • OptionalonAccessDenied?: (user?: MonoCloudUser) => JSX.Element

      A custom react element to render when the user is not authenticated or is not a member of the specified groups.

    • OptionalonError?: (error: Error) => JSX.Element

      Callback function to handle errors. If not provided, errors will be thrown.

    • OptionalreturnUrl?: string

      The url where the user will be redirected to after sign in