Skip to main content
Version: 1.3

Class: DecodedJwtCredential

identity_wasm.DecodedJwtCredential

A cryptographically verified and decoded Credential.

Note that having an instance of this type only means the JWS it was constructed from was verified. It does not imply anything about a potentially present proof property on the credential itself.

Table of contents

Methods

Methods

credential

credential(): Credential

Returns a copy of the credential parsed to the Verifiable Credentials Data model.

Returns

Credential


protectedHeader

protectedHeader(): JwsHeader

Returns a copy of the protected header parsed from the decoded JWS.

Returns

JwsHeader


customClaims

customClaims(): undefined | Record\<string, any>

The custom claims parsed from the JWT.

Returns

undefined | Record\<string, any>


intoCredential

intoCredential(): Credential

Consumes the object and returns the decoded credential.

Warning

This destroys the DecodedJwtCredential object.

Returns

Credential