deleteMfaAuthenticator method
Delete Authenticator
Delete an authenticator app.
Implementation
Future<models.User> deleteMfaAuthenticator(
{required String userId, required enums.AuthenticatorType type}) async {
final String apiPath = '/users/{userId}/mfa/authenticators/{type}'
.replaceAll('{userId}', userId)
.replaceAll('{type}', type.value);
final Map<String, dynamic> apiParams = {};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.delete,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.User.fromMap(res.data);
}