Decodes a JSON Web Token (JWT) and returns the decoded payload and signature.
import { decodeJWT } from "thirdweb/utils"; const { payload, signature } = decodeJWT(jwt);
function decodeJWT(jwt: string): { payload: JWTPayload; signature: `0x${string}`;};
The JWT string to decode.
let jwt: string;
let returnType: { payload: JWTPayload; signature: `0x${string}` };
An object containing the decoded payload and signature.