pub async fn pair(
store: &DeviceStore,
req: &PairRequest,
node_url: &str,
) -> Result<PairResponse, PairError>Expand description
Verify the pairing nonce and register the device, returning its token and the node URL the device should connect to.
node_url is derived by the caller from the node’s reachable address
(tailnet/LAN); the resolution seam is sidecar::tailscale (see
server::hardware_api).