The jwt module provides helper methods that allow you to decode and validate Vincent-specific JWTs.

Vincent JWTs are composed using the did-jwt library, but have a custom alg of ES256K, and are signed using PKP ethereum keys.

Vincent JWTs are issued by the Vincent Dashboard when a user provides delegation permission for your app to their agent PKP. They are passed to your web app using a redirectUri which you configure on your app.

The methods exported by the jwt module are low-level - you probably will just want to use getWebAuthClient to get a WebAuthClient which handles the redirect process, parsing the JWT from the URL, and verifying it for you.

API

decode
isExpired
verify

Interfaces

VincentJWT

Other

VincentJWTAppSpecific
getAppInfo
getPKPInfo
isAppSpecificJWT
isGeneralJWT