Log in
Interface

UserConfigInterface

Magento\TwoFactorAuth\Api\Data\UserConfigInterface

What it does

This interface defines the data structure for storing two-factor authentication configuration for individual admin users in Magento 2.

Developers use this to manage which 2FA providers a user has configured, their default provider choice, and retrieve or update user-specific 2FA settings.

It's primarily used when implementing or extending two-factor authentication functionality for admin users.

Public Methods

  • getId()
  • setId()
  • getUserId()
  • setUserId()
  • getEncodedProviders()
  • setEncodedProviders()
  • getDefaultProvider()
  • setDefaultProvider()
  • getExtensionAttributes()
  • setExtensionAttributes()