ModuleSDK
Modules
isSessionEnabled

isSessionEnabled

Check whether a session is enabled or not.

Usage

const isEnabled = await isSessionEnabled({
  client,
  account,
  permissionId: '0xPermissionId',
});

Parameters

permissionId

The permission ID of the session to check if enabled.

client

  • Type: PublicClient

The rpc client to use for the chain you want to install the module on.

account

The account object.

Returns

isEnabled

  • Type: Promise<boolean>

True if the session is enabled and false otherwise.