MonoCloud Authentication SDK
    Preparing search index...
    Index

    Constructors

    Properties

    Methods

    • Checks if the current session user belongs to the specified groups.

      Parameters

      • request: IMonoCloudCookieRequest

        MonoCloud cookie request object.

      • response: IMonoCloudCookieResponse

        MonoCloud cookie response object.

      • groups: string[]

        List of group names or IDs to check.

      • OptionalgroupsClaim: string

        Optional claim name that holds groups. Defaults to "groups".

      • OptionalmatchAll: boolean

        If true, requires membership in all groups; otherwise any one group is sufficient.

      Returns Promise<boolean>

      true if the user satisfies the group condition, false otherwise.