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

    Function getAccessGrant

    Retrieve the Access Grant associated to the given URL.

    The URL of an access grant, with or without consent.

    Optional properties to customise the request behaviour.

    The Verifiable Credential associated to the given IRI, if it is an access grant. Throws otherwise.

    0.4.0

    • Retrieve the Access Grant associated to the given URL.

      Parameters

      • accessGrantVcUrl: string | URL

        The URL of an access grant, with or without consent.

      • options: AccessBaseOptions & { returnLegacyJsonld: false }

        Optional properties to customise the request behaviour.

      Returns Promise<DatasetWithId>

      The Verifiable Credential associated to the given IRI, if it is an access grant. Throws otherwise.

      0.4.0

    • Retrieve the Access Grant associated to the given URL.

      Parameters

      • accessGrantVcUrl: string | URL

        The URL of an access grant, with or without consent.

      • Optionaloptions: AccessBaseOptions & { returnLegacyJsonld?: true }

        Optional properties to customise the request behaviour.

      Returns Promise<AccessGrant>

      The Verifiable Credential associated to the given IRI, if it is an access grant. Throws otherwise.

      0.4.0

      set returnLegacyJsonld: false and use RDFJS API

    • Retrieve the Access Grant associated to the given URL.

      Parameters

      • accessGrantVcUrl: string | URL

        The URL of an access grant, with or without consent.

      • Optionaloptions: AccessBaseOptions & { returnLegacyJsonld?: boolean }

        Optional properties to customise the request behaviour.

      Returns Promise<DatasetWithId>

      The Verifiable Credential associated to the given IRI, if it is an access grant. Throws otherwise.

      0.4.0

      set returnLegacyJsonld: false and use RDFJS API