Revoke all trusted devices
DELETE
/api/mfa/trusted-devices
const url = 'http://localhost:3001/api/mfa/trusted-devices';const options = {method: 'DELETE', 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 DELETE \ --url http://localhost:3001/api/mfa/trusted-devices \ --header 'Authorization: <Authorization>'Revoke trust for all devices associated with the authenticated user
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
message
string
revoked_count
integer
success
boolean
Examplegenerated
{ "message": "example", "revoked_count": 1, "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}