Function: getPersistedDeviceIdValidationError()
getPersistedDeviceIdValidationError(
candidate:string):string|null
Defined in: electron/services/sync/syncEngineUtils.ts:65
Returns a stable validation error string for persisted device IDs.
Parameters
candidate
string
Returns
string | null
Remarks
The cloud sync subsystem stores device ids inside provider object keys
(sync/devices/<deviceId>/...). This helper is shared across multiple
modules so the accept/reject policy cannot drift.
The returned messages are intentionally aligned with the historical error strings thrown by ProviderCloudSyncTransport so existing tests and telemetry remain stable.