Skip to main content

DecodedJwtPresentation

@iota/identity-wasm API documentation


Class: DecodedJwtPresentation

A cryptographically verified and decoded presentation.

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 presentation itself.

Methods​

protectedHeader()​

protectedHeader(): JwsHeader

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

Returns​

JwsHeader


intoPresentation()​

intoPresentation(): Presentation

Consumes the object and returns the decoded presentation.

Warning​

This destroys the DecodedJwtPresentation object.

Returns​

Presentation


expirationDate()​

expirationDate(): undefined | Timestamp

The expiration date parsed from the JWT claims.

Returns​

undefined | Timestamp


issuanceDate()​

issuanceDate(): undefined | Timestamp

The issuance date parsed from the JWT claims.

Returns​

undefined | Timestamp


audience()​

audience(): undefined | string

The aud property parsed from JWT claims.

Returns​

undefined | string


customClaims()​

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

The custom claims parsed from the JWT.

Returns​

undefined | Record<string, any>