Log in
Interface

CustomerTokenServiceInterface

Magento\Integration\Api\CustomerTokenServiceInterface

What it does

This interface defines the contract for managing customer authentication tokens in Magento 2's REST API.

Developers use this service to create OAuth access tokens when customers log in via API and to revoke tokens when customers log out or when token invalidation is needed for security purposes.

Public Methods

  • createCustomerAccessToken()
  • revokeCustomerAccessToken()