Model

SaveAuthenticationData

Magento\LoginAsCustomer\Model\ResourceModel\SaveAuthenticationData

What it does

This class handles saving authentication data when an admin user initiates a 'Login as Customer' session.

It generates a random secret key, encrypts it, and stores the authentication record in the database linking the admin, customer, and timestamp.

Developers would use this when implementing or extending the admin functionality to log in as a customer for support purposes.

Public Methods

  • execute()