Log in
Model

ExpirationValidator

Magento\Integration\Model\UserToken\ExpirationValidator

What it does

This validator checks if user authentication tokens have expired by comparing their expiration timestamp with the current GMT time.

It's used in Magento's authentication flow to ensure tokens are still valid before granting access, though integration tokens are exempt from expiration validation.

Developers would use this when implementing custom token-based authentication or extending Magento's security layer.

Public Methods

  • validate()