/{app_slug}/v1/me/mfa/factors/{id}AuthDisable an MFA factor
Soft-disable. The row is preserved (with `disabled_at` set) for audit. Has no effect on existing sessions — their `amr` claim still reflects whatever satisfied sign-in at the time. Disabling the only enabled factor removes the MFA requirement on future sign-ins.
Path parameters
id*stringId of the factor.
app_slug*stringSlug of the app.
Response · 204
Factor disabled.
Example
Request
DELETE https://api.auth.productcraft.co/{app_slug}/v1/me/mfa/factors/{id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.consumer("my-app").me.mfa.factors.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.consumer(…).me.mfa.factors.delete(id, options?): void