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

    Function getFile

    • Retrieve a File from a Solid Pod using an Access Grant to prove the caller is authorized to access the target resource.

      Parameters

      • resourceUrl: string

        The URL of the target resource.

      • accessGrant: VerifiableCredential | DatasetWithId

        The Access Grant VC proving the caller is authorized.

      • Optionaloptions: Partial<GetFileOptions>

        Optional properties to customise the request behaviour.

      Returns Promise<Blob & WithResourceInfo & {}>

      A promise that resolves to a File if successful, and that rejects otherwise.