Model

Revoker

Magento\JwtUserToken\Model\Revoker

What it does

This class handles the revocation of JWT user tokens in Magento 2.

Developers use this service to invalidate all authentication tokens issued to a specific user before a certain timestamp, typically when a user logs out, changes their password, or when security requires force-logging them out of all sessions.

Public Methods

  • revokeFor()