Builds a JSON Web Token (JWT) using the provided options.
import { encodeJWT } from "thirdweb/utils"; const jwt = await encodeJWT({ payload: { iss: "0x1234567890123456789012345678901234567890", sub: "0x1234567890123456789012345678901234567890", aud: "0x1234567890123456789012345678901234567890", exp: new Date(Date.now() + 1000 * 60 * 60), nbf: new Date(), iat: new Date(), jti: "1234567890", ctx: { example: "example", }, }, wallet,});
The generated JWT.