clear method

Future<void> clear()

Wipes stored credentials and emits TokenClearedEvent.

This is the canonical "log the user out" call. Safe to call multiple times.

Implementation

Future<void> clear() async {
  _checkNotDisposed();
  await _storage.delete();
  _emit(const TokenClearedEvent());
}