handleLoggedOut abstract method

Future<void> handleLoggedOut()

Public handler for post-logout local cleanup, completing the handleAuthenticated/handleAboutToLogOut/handleLoggedOut trio.

Resets the cached sync markers (timezone / offset / last-server-sync / last-touch) so the NEXT login's change-detection does not compare against the previous user's cached values (BEH-21). Purely local and non-blocking — it does NOT touch the backend (the device doc is deleted by handleAboutToLogOut before signOut). Idempotent under the double onLoggedOut fire.

Usage

// Race-free initialization pattern:
final deviceService = DeviceServiceImpl();
final auth = AuthServiceImpl(
  firebaseApp: app,
  onLoggedOutCallbacks: [
    PrioritizedCallback(deviceService.handleLoggedOut, priority: 0),
  ],
);

Implementation

Future<void> handleLoggedOut();