handleSessionEvent method

Future<void> handleSessionEvent(
  1. String userId,
  2. String action
)

Handles session lifecycle events

Implementation

Future<void> handleSessionEvent(
  String userId,
  String action, // started | extended | expired
) async {
  await emitEvent('session_event', {
    'user_id': userId,
    'action': action,
  });
}