Type alias SessionData

SessionData: {
    description?: string;
    granter: Hex;
    moduleData: UsePermissionModuleData;
    sessionPublicKey: Hex;
}

Represents the data structure for a smart session. Smart sessions allow for delegated and controlled access to a user's account.

Type declaration

  • Optional description?: string

    Description of the session. Useful for keeping humancontext about the session.

  • granter: Hex

    Hex-encoded address of the account granting the session.

  • moduleData: UsePermissionModuleData

    Module-specific data containing session configuration and permissions.

  • sessionPublicKey: Hex

    Hex-encoded public key for the session. Used for signature verification.