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

    Function getVerifiableCredential

    • Dereference a VC URL, and verify that the resulting content is valid.

      Parameters

      • vcUrl: string

        The URL of the VC.

      • options: ParseOptions & {
            fetch?: {
                (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
                (input: string | Request | URL, init?: RequestInit): Promise<Response>;
            };
            normalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase;
            returnLegacyJsonld: false;
            skipValidation?: boolean;
        }

        Options to customize the function behavior.

        • options.fetch: Specify a WHATWG-compatible authenticated fetch.
        • options.returnLegacyJsonld: Include the normalized JSON-LD in the response
        • Optionalfetch?: {
              (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
              (input: string | Request | URL, init?: RequestInit): Promise<Response>;
          }
        • Optionalnormalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase
        • returnLegacyJsonld: false
        • OptionalskipValidation?: boolean

      Returns Promise<DatasetWithId>

      The dereferenced VC if valid. Throws otherwise.

      0.4.0

    • Dereference a VC URL, and verify that the resulting content is valid.

      Parameters

      • vcUrl: string

        The URL of the VC.

      • Optionaloptions: ParseOptions & {
            fetch?: {
                (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
                (input: string | Request | URL, init?: RequestInit): Promise<Response>;
            };
            normalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase;
            returnLegacyJsonld?: true;
            skipValidation?: boolean;
        }

        Options to customize the function behavior.

        • options.fetch: Specify a WHATWG-compatible authenticated fetch.
        • options.returnLegacyJsonld: Include the normalized JSON-LD in the response
        • Optionalfetch?: {
              (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
              (input: string | Request | URL, init?: RequestInit): Promise<Response>;
          }
        • Optionalnormalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase
        • OptionalreturnLegacyJsonld?: true
        • OptionalskipValidation?: boolean

      Returns Promise<VerifiableCredential>

      The dereferenced VC if valid. Throws otherwise.

      0.4.0

      Deprecated in favour of setting returnLegacyJsonld: false. This will be the default value in future versions of this library.

    • Dereference a VC URL, and verify that the resulting content is valid.

      Parameters

      • vcUrl: string

        The URL of the VC.

      • Optionaloptions: ParseOptions & {
            fetch?: {
                (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
                (input: string | Request | URL, init?: RequestInit): Promise<Response>;
            };
            normalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase;
            returnLegacyJsonld?: boolean;
            skipValidation?: boolean;
        }

        Options to customize the function behavior.

        • options.fetch: Specify a WHATWG-compatible authenticated fetch.
        • options.returnLegacyJsonld: Include the normalized JSON-LD in the response
        • Optionalfetch?: {
              (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
              (input: string | Request | URL, init?: RequestInit): Promise<Response>;
          }
        • Optionalnormalize?: (object: VerifiableCredentialBase) => VerifiableCredentialBase
        • OptionalreturnLegacyJsonld?: boolean
        • OptionalskipValidation?: boolean

      Returns Promise<DatasetWithId>

      The dereferenced VC if valid. Throws otherwise.

      0.4.0

      Deprecated in favour of setting returnLegacyJsonld: false. This will be the default value in future versions of this library.