Model
TfaSession
Magento\TwoFactorAuth\Model\TfaSession
What it does
This class manages the two-factor authentication session state for admin users in Magento 2.
Developers use it to grant access after successful TFA verification, check if a user has passed TFA authentication, and track which TFA providers a user has skipped during the authentication process.
It's essential for controlling access to the admin panel when TFA is enabled.
Public Methods
- grantAccess()
- isGranted()
- getSkippedProviderConfig()
- setSkippedProviderConfig()