@inrupt/solid-client
    Preparing search index...

    Function setVcAccess

    • The ACP specification is a draft. As such, this function is experimental and
      subject to change, even in a non-major release.
      See also: https://solid.github.io/authorization-panel/acp-specification/
      

      Set the maximum access modes that are allowed for a VC holder for a given resource. If the resource owner issued an Access Grant for the resource, the agent that has been granted access will have at most the permissions set by this function. The Access Grant may be more restrictive.

      Note that additional access may have been set if the ACR has been manipulated not using this library, which is currently out of scope. In this case, the access set by this function may not apply.

      Parameters

      • resourceWithAcr: WithAccessibleAcr

        The resource for which the access modes are being set for VC holders.

      • access: Partial<AccessModes>

        The access modes to set. Setting a mode to true will enable it, to false will disable it, and to undefined will leave it unchanged compared to what was previously set.

      • options: { inherit: boolean } = ...

        An option object to customize the function behavior:

        • inherit: if set to true, the access set to the target resource cascades to its contained resources.

      Returns WithAccessibleAcr

      A copy of the resource and its attached ACR, updated to the new access modes.

      1.17.0