MonoCloud Authentication SDK
    Preparing search index...
    interface ProtectedComponentProps {
        children: ReactNode;
        groups?: string[];
        groupsClaim?: string;
        matchAllGroups?: boolean;
        onAccessDenied?: ReactNode;
    }
    Index

    Properties

    children: ReactNode

    Components that should be rendered if the user is authenticated.

    groups?: string[]

    A list of group names or IDs to which the user must belong to. The user should belong to atleast one of the specified groups.

    groupsClaim?: string

    Name of the claim of user's groups. default: groups.

    matchAllGroups?: boolean

    Flag indicating if all groups specified should be present in the users profile. default: false.

    onAccessDenied?: ReactNode

    A fallback component that should render if the user is not authenticated.