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
protectedHeader
▸ protectedHeader(): JwsHeader
Returns a copy of the protected header parsed from the decoded JWS.
Returns
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.