decodeJWT

Decodes a JSON Web Token (JWT) and returns the decoded payload and signature.

Example

import { decodeJWT } from "thirdweb/utils";
const { payload, signature } = decodeJWT(jwt);

Parameters

Returns

An object containing the decoded payload and signature.