Desactivar MFA
DELETE
/auth/mfa
const url = 'https://api.dev.lade.com.mx/auth/mfa';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.dev.lade.com.mx/auth/mfa \ --header 'Authorization: Bearer <token>'Desactiva SOFTWARE_TOKEN_MFA para el usuario autenticado (Cognito SetUserMfaPreference con Enabled=False).
Authorizations
Sección titulada «Authorizations»Responses
Sección titulada «Responses»MFA desactivado correctamente
Media typeapplication/json
object
message
string
Example
{ "message": "MFA desactivado correctamente"}No autenticado
Media typeapplication/json
object
error
required
string
message
string
field
string
Example
{ "error": "Unauthorized", "message": "Invalid or expired token"}