Static
didDID Resolver instance for resolving decentralized identifiers.
Static
parseParses a JWT without verifying its signature.
Parameters for JWT decoding, including the JWT string.
both encoded and decoded JWT parts
const { encoded: encodedJwt, decoded: decodedJwt } = Jwt.parse({ jwt: myJwt });
Static
signCreates a signed JWT.
Parameters for JWT creation including signer DID and payload.
The compact JWT as a string.
const jwt = await Jwt.sign({ signerDid: myDid, payload: myPayload });
Static
verifyVerifies a JWT.
Parameters for JWT verification
Verified JWT information including signer DID, header, and payload.
const verifiedJwt = await Jwt.verify({ jwt: myJwt });
Class for handling Compact JSON Web Tokens (JWTs). This class provides methods to create, verify, and decode JWTs using various cryptographic algorithms. More information on JWTs can be found here