Log in
Repository

UserConfigRepositoryInterface

Magento\TwoFactorAuth\Api\UserConfigRepositoryInterface

What it does

This repository interface manages two-factor authentication user configuration data in Magento 2.

Developers use it to save, retrieve, update, and delete 2FA settings for admin users, including methods to fetch configurations by user ID or search through multiple configurations using criteria.

It follows Magento's repository pattern for data persistence operations.

Public Methods

  • save()
  • getById()
  • getByUserId()
  • delete()
  • getList()