Credential Verification
Validate Verifiable Credentials using Verification Service.
Install Dependency
Package: @affinidi-tdk/credential-verification-client
npm install @affinidi-tdk/credential-verification-client --saveCheck the latest version on the npm registry or view the source on GitHub.
Classes and Methods
Default API
Verify Verifiable Credentials and Verifiable Presentations.
verifyCredentials
Validates one or more Verifiable Credentials.
Parameters
Array of Verifiable Credentials to validate.
Example
import { DefaultApi, Configuration, VerifyCredentialInput } from '@affinidi-tdk/credential-verification-client'
const api = new DefaultApi(
new Configuration({ apiKey: authProvider.fetchProjectScopedToken.bind(authProvider) })
)
const request: VerifyCredentialInput = {
verifiableCredentials: [
{
// credential object
},
],
}
const { data } = await api.verifyCredentials(request)verifyPresentation
Validates a Verifiable Presentation.
Parameters
Verifiable Presentation to validate.
Example
import { DefaultApi, Configuration, VerifyPresentationInput } from '@affinidi-tdk/credential-verification-client'
const api = new DefaultApi(
new Configuration({ apiKey: authProvider.fetchProjectScopedToken.bind(authProvider) })
)
const request: VerifyPresentationInput = {
verifiablePresentation: {},
}
const { data } = await api.verifyPresentation(request)Was this page helpful?
Glad to hear it! Please tell us how we can improve more.
Sorry to hear that. Please tell us how we can improve.
Thank you for sharing your feedback so we can improve your experience.