isConnectedToAuth property

  1. @override
bool get isConnectedToAuth
override

Whether this service is connected to auth.

Returns true after initialize or connectToAuthService has been called successfully. Used by other services (e.g., NotificationService) to determine if DeviceService will handle cleanup responsibilities.

Usage

if (deviceService.isConnectedToAuth) {
  // DeviceService will handle device doc cleanup on logout
} else {
  // Must handle cleanup ourselves
}

Implementation

@override
bool get isConnectedToAuth => _isConnectedToAuthService;