Model

GetAuthenticationDataBySecret

Magento\LoginAsCustomer\Model\GetAuthenticationDataBySecret

What it does

This class decrypts and validates authentication secrets used in the Login as Customer feature.

It ensures the secret token contains valid admin and customer IDs and hasn't expired (valid for 10 seconds).

Developers use this to securely verify admin requests to log in as a customer before granting access.

Public Methods

  • execute()