refreshJWT

Refreshes a JSON Web Token (JWT) by encoding a new payload with updated expiration time.

Example

import { refreshJWT } from "thirdweb/utils";
const jwt = await refreshJWT({
account,
jwt,
expirationTime: 1000 * 60 * 60,
});

Parameters

Returns

A Promise that resolves to the refreshed JWT.