Log in
Model

Reader

Magento\Integration\Model\OpaqueToken\Reader

What it does

This class reads and validates bearer tokens (OAuth tokens) used for API authentication in Magento 2.

Developers use this class to retrieve user context information from a token string, including the user type (admin, customer, or integration), user ID, and token expiration details.

It ensures tokens are valid, not revoked, and belong to authorized user types before returning the token data.

Public Methods

  • read()