Skip to main content

decodeCredentialToObject() function

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

Parses a W3CVerifiableCredential and converts it to a VerifiableCredential so it is easier to use programmatically.

Signature:

export declare function decodeCredentialToObject(input: W3CVerifiableCredential): VerifiableCredential

Parameters

ParameterTypeDescription
inputW3CVerifiableCredentialthe raw credential to be transformed This API may change without a BREAKING CHANGE notice.

Returns:

VerifiableCredential