isConnectedToAuth property

bool get isConnectedToAuth

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

bool get isConnectedToAuth;