Get lockout status
GET
/api/mfa/lockout-status
const url = 'http://localhost:3001/api/mfa/lockout-status';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3001/api/mfa/lockout-status \ --header 'Authorization: <Authorization>'Retrieve the current account lockout status for the authenticated user
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
account
object
failed_attempts
integer
is_locked
boolean
lock_reason
string
locked_until
string
success
boolean
Examplegenerated
{ "account": { "failed_attempts": 1, "is_locked": true, "lock_reason": "example", "locked_until": "example" }, "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}