resetSession method

void resetSession()

Call on logout/account change. Re-enter recording through the consent UI.

Implementation

void resetSession() {
  stopRecording();
  screen = 'unknown';
  _sensitive = false;
  _pendingClient?.close();
  _dismissEditor?.call();
}