¶ Manage MFA
Update Time: 2024-10-10 07:28:40
This module is primarily used to manage MFA-related operations.
Please use the module in the following ways:
use Authing\Mgmt\ManagementClient;
$manageClient = new ManagementClient('YOUR_USERPOOL_ID', 'YOUR_USERPOOL_SECRET');
$mfaManagementClient = $managementClient->mfa();
$mfaManagementClient->getStatus(USER_ID); // User MFA Binding Status
¶ Get user MFA binding status
MfaManagementClient->getStatus(string $userId);
Get user MFA binding status
¶ parameter
userId
<string> user ID
¶ Example
$mfaManagementClient->getStatus(string $userId);
¶ Sample data
{
"FACE": true,
"OTP": false
}
¶ Mensize user MFA
MfaManagementClient->unAssociateMfa(string $userId, string $mfaType);
Mensize user MFA
¶ parameter
userId
<string> user IDmfaType
<string> Melting type, optional valueFACE
,OTP
¶ Example
$mfaManagementClient->unAssociateMfa(USER_ID, 'OTP');
¶ Sample data
true