@hyperledger/identus-edge-agent-sdk / Exports / Domain / JWT
Namespace: JWT
Domain.JWT
Table of contents
Interfaces
Type Aliases
Functions
Type Aliases
Payload
Ƭ Payload: JWTPayload
Defined in
Functions
decode
▸ decode(jws
): DecodedObj
decode a JWT into its parts
Parameters
Name | Type |
---|---|
jws | string |
Returns
Defined in
sign
▸ sign(issuer
, privateKey
, payload
, header?
): Promise
<string
>
Creates a signed JWT
Parameters
Name | Type |
---|---|
issuer | DID |
privateKey | PrivateKey |
payload | Partial <JWTPayload > |
header? | Partial <Header > |
Returns
Promise
<string
>