Auth: JWT Required
Before enabling 2FA, use this method to get a TOTP secret for generating QR Code.
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Request Code Samples
curl --location --request GET '/user/setting/2fa' \
--header 'Authorization: Bearer <token>'
Responses
application/json {
"code": 0,
"data": "CU7426PR4ZPLFLBNHC6IEGOODB3KT5WD",
"msg": ""
}
Modified at 2025-08-12 07:13:02