diff --git a/src/management/index.js b/src/management/index.js index f1f4bbf9a..bb07519ae 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -998,7 +998,7 @@ utils.wrapPropertyMethod(ManagementClient, 'updateAppMetadata', 'users.updateApp * @example * var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER }; * - * management.deleteUserMultifcator(params, function (err, user) { + * management.deleteUserMultifactor(params, function (err, user) { * if (err) { * // Handle error. * } @@ -1013,6 +1013,16 @@ utils.wrapPropertyMethod(ManagementClient, 'updateAppMetadata', 'users.updateApp * * @return {Promise|undefined} */ +utils.wrapPropertyMethod( + ManagementClient, + 'deleteUserMultifactor', + 'users.deleteMultifactorProvider' +); + +/** + * @deprecated The function name has a typo. We're shipping this so it + * doesn't break compatibility. Use {@link deleteUserMultifactor} instead. + */ utils.wrapPropertyMethod( ManagementClient, 'deleteUserMultifcator', diff --git a/test/management/management-client.tests.js b/test/management/management-client.tests.js index 9de874ed0..4ae834299 100644 --- a/test/management/management-client.tests.js +++ b/test/management/management-client.tests.js @@ -195,7 +195,9 @@ describe('ManagementClient', function() { 'getActiveUsersCount', 'getDailyStats', 'getTenantSettings', - 'updateTenantSettings' + 'updateTenantSettings', + 'deleteUserMultifactor', + 'deleteUserMultifcator' ]; before(function() {