router/api-router.go:142。controller.RegenerateBackupCodes,controller/twofa.go:121。account_security:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location --request POST '/api/user/2fa/backup_codes' \
--header 'X-Security-Proof;' \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "string",
"message_key": "string",
"message_params": {
"property1": "string",
"property2": "string"
},
"data": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}