pub async fn device_get_id(
db: State<'_, DatabaseWrapper>,
) -> Result<String, String>Expand description
Get or create the device ID. Device ID is a UUID v4 that persists across app restarts. On first call, generates and stores a new UUID. On subsequent calls, retrieves the stored UUID.
ยงReturns
Ok(String)- The device ID (UUID v4)Err(String)- If database operation fails
TRACES: UR-009 | DR-011