Gamma API

Disable two-factor

POST
/api/auth/two-factor/disable

Use this endpoint to disable two factor authentication.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Request Body

application/json
  1. body
password?string

User password

Response Body

Successful response

application/json
  1. response
status?boolean
Example Request
curl -X POST 'http://localhost:3000/api/auth/two-factor/disable' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "status": true}