Log in
Interface

TfaSessionInterface

Magento\TwoFactorAuth\Api\TfaSessionInterface

What it does

This interface defines the contract for managing two-factor authentication (2FA) sessions in Magento.

Developers use this to grant access after successful 2FA verification, check if a user has passed 2FA authentication, and manage configurations for providers that can be skipped during the authentication process.

Public Methods

  • grantAccess()
  • isGranted()
  • getSkippedProviderConfig()
  • setSkippedProviderConfig()