isVerifiableCredential(credential): credential is VerifiableCredential

Checks if an object is a VerifiableCredential.

Parameters

ParameterTypeDescription
credentialVerifiableCredentialTypeThe credential object to check.

Returns

credential is VerifiableCredential

true if the object is a valid VerifiableCredential, otherwise false.

Defined in

verifiableCredentialsSDK/types/utils.ts:55