Model

DeleteAuthenticationDataForUser

Magento\LoginAsCustomer\Model\ResourceModel\DeleteAuthenticationDataForUser

What it does

This class removes all 'Login as Customer' authentication records associated with a specific admin user from the database.

Developers would use this when an admin user is deleted or when all active login-as-customer sessions for that admin need to be invalidated for security purposes.

Public Methods

  • execute()