deleteSession method

Future<void> deleteSession(
  1. String sessionId
)

Clears the current session for a user.

IBM deletes sessions automatically after 5 minutes of inactivity.

Implementation

Future<void> deleteSession(String sessionId) async {
  final path = _buildPath(RequestType.Session, sessionId: sessionId);

  await Dio().delete(path, options: options);
}