Is there a way to make a dummy user id?

Hi,
I’m making a product catalog app where I don’t want the user to require log in unless they are buying the order. Is there a way to make a dummy user Id to create the order with? Only when they click on buy on the order cart should they have to login.

Regards,
Ruchika