ModuleKit
Testing
Smart Sessions
isSessionEnabled

isSessionEnabled

Check if a session is enabled. You can also check this only by the permissionId using isPermissionEnabled.

Usage

bool isEnabled = instance.isSessionEnabled(session);

Parameters

instance

The instance of the account used for testing.

session

The session to check if it is enabled.

Returns

isEnabled

  • Type: bool

Returns true if the session is enabled and false otherwise.