Magento2 – How to authenticate customer by email

Magento2 – How to authenticate customer by email

To authenticate customer using email and password, create an instance of \Magento\Customer\Api\AccountManagementInterface class and call authenticate(..) method. The authenticate method requires email and password parameters.