ModuleKit
Testing
Smart Sessions
getSessionDigest

getSessionDigest

Get the session digest to sign in order to enable a session.

Usage

bytes32 digest = instance.getSessionDigest({session: session, mode: SmartSessionMode.USE });

Parameters

instance

The instance of the account used for testing.

session

The session to get the digest from.

mode

  • Type: SmartSessionMode

The mode of the session, either USE, ENABLE or UNSAFE_ENABLE.

Returns

digest

  • Type: bytes32

The digest of the session.