Convert guest customer to regular customer on successful order place in magento 2
I’m looking for code to convert guest checkout customer to regular customer on successful order placement.
MagentoSalesApiOrderCustomerManagementInterface $orderCustomerService in this class I have found one method called create that is accepting order id and converting to a customer. But I guess it is not working.
Anyone know the solution?