Skip to Content
HomeLink Hub
Users & Profile

Turn off the two-factor authentication flag

POST
/api/v1/user/disable-2fa

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.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Response Body

Flag cleared

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
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  }}