auth
Enable two-factor authentication
Changed onpost/auth/2fa/enable
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Two-factor authentication enabled successfully
Example response
{
"status": "success",
"message": "Two-factor authentication enabled successfully",
"statusCode": 201,
"data": {
"secret": "secret",
"qr_code": "qr_code"
}
}Changes
- breaking
removed the request body
- info
added the non-success response with the status
- info
added the success response with the status
- breaking
- info
endpoint added
- info