Skip to main content

Identifier.getLatestClaimValue() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Convenience method to get the most recent information about a subject DID as described by Verifiable Credential claims.

Example:

// get the latest claim value for credentials containing `credentialSubject.name` and this Identifier as subject.
const name = await identifier.getLatestClaimValue({ type: 'name' })

Signature:

getLatestClaimValue(dbConnection: Promise<Connection>, where: any): Promise<string | null | undefined>;

Parameters

ParameterTypeDescription
dbConnectionPromise<Connection>
whereanyThe TypeORM where filter to use.

Returns:

Promise<string | null | undefined>