Disable TOTP 2FA

Disable TOTP (authenticator app) 2FA for the current user. After disabling, the user will fall back to email OTP for 2FA (2FA is always required in this system).

Body
required
application/json
  • password
    Type: stringFormat: password
    required

    Current password to confirm identity

Responses
  • application/json
  • 400

    Invalid password or TOTP not enabled

  • application/json
Request Example for post/auth/two-factor/disable
curl https://api.gpcn.com/v1/auth/two-factor/disable \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: YOUR_SECRET_TOKEN' \
  --data '{
  "password": ""
}'
{
  "success": true
}