How to enable the "Require Login" option for customers to access the online store?

To enable the “Require Login” option for customers to access the online store, please follow the steps mentioned below:

Step 1: Go to Online Store >> Click on Online Store Settings.

Step 2: Under Online store settings >> Enable Require login >> Click on Update Store Settings.