Log in
Interface

UserTokenValidatorInterface

Magento\Integration\Api\UserTokenValidatorInterface

What it does

This interface defines a contract for validating user authentication tokens in Magento 2.

Developers implement this interface to create custom token validation logic, such as checking token expiration, validity, or user permissions.

It's primarily used in API authentication flows to ensure requests contain valid user tokens before granting access to protected resources.

Public Methods

  • validate()