Genericize DeviceAuth