Checks if the session key should be updated.
import { shouldUpdateSessionKey } from "thirdweb/extensions/erc4337"; const shouldUpdate = await shouldUpdateSessionKey({ accountContract, sessionKeyAddress, newPermissions,});
function shouldUpdateSessionKey(args: { accountContract: Readonly; newPermissions: AccountPermissions; sessionKeyAddress: string;}): Promise<boolean>;
let args: { accountContract: Readonly; newPermissions: AccountPermissions; sessionKeyAddress: string;};
let returnType: Promise<boolean>;
A boolean indicating if the session key should be updated.