Remove a member's MFA factor
Remove one second factor, for a user who lost a device.
DELETE /organizations/{org}/tenants/{tenantId}/members/{userId}/mfa/{factorId}
Removes one of the member’s second factors.
Authorization
Any member of the org. A non-member gets 404, the same as for an org that does not exist.
Path parameters
| Name | Type | Description |
|---|---|---|
org | string | The organization: its id (org_…) or its slug. It has to be an org your token can manage (see Who can call it) |
tenantId | string | The tenant, tnt_… |
userId | string | The member, usr_… |
factorId | string | The factor, mfa_… |
Response
204 No Content
Errors
| Status | error | When |
|---|---|---|
404 | not_found | No such factor on this member, no such member or tenant, or the org is not yours |
Example
curl -X DELETE https://loginwith.loginwith.dev/organizations/acme/tenants/tnt_65f1c2a9e4b0d3f7a1c8e908/members/usr_65f1c2a9e4b0d3f7a1c8e909/mfa/mfa_65f1c2a9e4b0d3f7a1c8e90b \
-H "Authorization: Bearer $TOKEN"