Model

GenerateCustomerToken

Magento\CustomerGraphQl\Model\Resolver\GenerateCustomerToken

What it does

This GraphQL resolver generates authentication tokens for customer login requests.

Developers use this class to handle customer authentication in GraphQL APIs, validating credentials and returning JWT tokens that can be used for subsequent authenticated requests.

It's automatically invoked when the generateCustomerToken GraphQL mutation is called.

Public Methods

  • resolve()