logoutWithSessionId method

Future<void> logoutWithSessionId(
  1. String sessionId
)

Logs out user from specific session

sessionId The session ID to clear user from

Implementation

Future<void> logoutWithSessionId(String sessionId) async {
  if (_sessionManager != null) {
    await _clearUserFromSession(sessionId);
    // Rotate session identifier after privilege downgrade (logout).
    await _sessionManager.regenerateSession(sessionId);
  }
}