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

    Function isValidVc

    • Verify that a VC is valid, i.e. :

      • its signature matches its issuer's key
      • it has not been revoked
      • it isn't expired These verifications are done server-side by a Verification Service, either discovered from the VC Issuer or manually provided.

      Parameters

      • vc: string | URL | DatasetWithId | VerifiableCredentialBase

        The VC to verify

      • Optionaloptions: Partial<
            {
                fetch?: {
                    (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
                    (input: string | Request | URL, init?: RequestInit): Promise<Response>;
                };
                verificationEndpoint?: string;
            },
        > & ParseOptions

        Additional options

        • options.fetch: An alternative fetch function to make the HTTP request, compatible with the browser-native fetch API. This can be typically used for authentication.
        • options.verificationEndpoint: Pass a trusted VC verification service

      Returns Promise<{ checks: string[]; errors: string[]; warnings: string[] }>

      a JSON-shaped validation report structured accoring to the VC Verifier API.

      0.3.0