Offer exclusive features to your customers by implementing the method to check if a customer is logged into Magento 2.
Attachment 16377
You would need to check whether the user is logged into Magento 2 for restricting some kind of display for them. Keep a check on your customer by using this programmatic method.
Visit: https://meetanshi.com/blog/check-if-...nto-magento-2/