Model

CreateCustomerToken

Magento\LoginAsCustomerGraphQl\Model\LoginAsCustomer\CreateCustomerToken

What it does

This model generates an OAuth customer token for the Login as Customer feature in GraphQL.

Developers use this class to programmatically create authentication tokens for a customer by their email address, typically when an admin needs to impersonate a customer for support purposes.

It validates the customer exists in the specified store before generating the token.

Public Methods

  • execute()