Users & Profile
Turn off the two-factor authentication flag
POST
Access: Bearer token required.
Sets twoFactorEnabled to false on the account. No request body is read and no password or code confirmation is required. As with POST /user/enable-2fa, the flag is only a stored preference and is not consulted at sign-in. Idempotent.
bearerAuthheader
AuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
Flag cleared
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/user/disable-2fa'Example Response
{ "status": 200, "success": true, "message": "Two-factor authentication disabled.", "data": { "twoFactorEnabled": false }}