Refreshes a JSON Web Token (JWT) by encoding a new payload with updated expiration time.
import { refreshJWT } from "thirdweb/utils"; const jwt = await refreshJWT({ account, jwt, expirationTime: 1000 * 60 * 60,});
function refreshJWT(options: RefreshJWTParams): Promise<string>;
The options for refreshing the JWT.
let options: { account: Account; expirationTime?: number; jwt: string;};
let returnType: Promise<string>;
A Promise that resolves to the refreshed JWT.