Model
UserAuthenticator
Magento\TwoFactorAuth\Model\UserAuthenticator
What it does
This class handles user authentication for two-factor authentication (2FA) in Magento 2.
Developers use it to verify TFA tokens and validate that users are authorized to use specific 2FA providers during configuration or login flows.
It's primarily used in the admin panel to manage 2FA provider setup and authentication workflows.
Public Methods
- authenticateWithTokenAndProvider()
- assertProviderIsValidForUser()