shouldUpdateSessionKey

Checks if the session key should be updated.

Example

import { shouldUpdateSessionKey } from "thirdweb/extensions/erc4337";
const shouldUpdate = await shouldUpdateSessionKey({
accountContract,
sessionKeyAddress,
newPermissions,
});
function shouldUpdateSessionKey(args: {
accountContract: Readonly;
newPermissions: AccountPermissions;
sessionKeyAddress: string;
}): Promise<boolean>;

Parameters

Type

let args: {
accountContract: Readonly;
newPermissions: AccountPermissions;
sessionKeyAddress: string;
};

Returns

let returnType: Promise<boolean>;

A boolean indicating if the session key should be updated.