deleteSessionById method

  1. @override
Future<SessionV1> deleteSessionById(
  1. String? correlationId,
  2. String sessionId
)
override

Deleted a session by it's unique id.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • sessionId an id of the session to be deleted Return Future that receives deleted session Throws error.

Implementation

@override
Future<SessionV1> deleteSessionById(
    String? correlationId, String sessionId) async {
  var timing = instrument(correlationId, 'sessions.delete_session_by_id');
  var session = await controller.deleteSessionById(correlationId, sessionId);
  timing.endTiming();
  return session;
}