GET
/v1/auth/two-factor
Copy to clipboard
Generate two factor secret
Generate two factor secret
Request
Add parameter in header
authorization
Example:
Authorization: Bearer <token>
Responses
200 Response
application/json
status
boolean
optional
data
object
optional
secret
string
optional
qr
string
optional
uri
string
optional
{
"status": true,
"data": {
"secret": "string",
"qr": "string",
"uri": "string"
}
}
401 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 4002,
"message": "No auth token"
}
}
404 Response
application/json
status
boolean
optional
error
object
optional
code
number
optional
message
string
optional
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}