I need to detect in frontend section for my custom module if customer has just successfully logged in, and i need to run some function before it redirect to another page, is there any way to do this?
Magento 2 – How to Get Customer Data After Login with Observer
customerevent-observerloginmagento2magento2.2
Best Answer
Use customer_login event observer for customer login action
1) Create events.xml
2) Now create observer CustomerLogin.php