{/**/}
Two-factor authentication is currently in-development, see{" "}
tracking issue here
.
}
description={"Set up 2FA on your account."}
disabled
action={}>
Set up Two-factor authentication
{/*}
description={"View and download your 2FA backup codes."}
disabled
action="chevron">
View my backup codes
*/}
}
description={
"Disable your account. You won't be able to access it unless you contact support."
}
action="chevron"
onClick={() =>
modalController.push({
type: "mfa_flow",
state: "known",
client,
callback: ({ token }) =>
client.api
.post("/auth/account/disable", undefined, {
headers: {
"X-MFA-Ticket": token,
},
})
.then(() => logOut(true)),
})
}>
}
description={
"Your account will be queued for deletion, a confirmation email will be sent."
}
action="chevron"
onClick={() =>
modalController.push({
type: "mfa_flow",
state: "known",
client,
callback: ({ token }) =>
client.api
.post("/auth/account/delete", undefined, {
headers: {
"X-MFA-Ticket": token,
},
})
.then(() => logOut(true)),
})
}>
{" "}