fix: correctly specify headers when removing MFA

This commit is contained in:
Paul Makles
2022-09-08 11:19:26 +01:00
parent 4a52208a68
commit 39f7d31025
2 changed files with 6 additions and 2 deletions

View File

@@ -100,7 +100,11 @@ export default function MultiFactorAuthentication() {
// Decide whether to disable or enable.
if (mfa!.totp_mfa) {
// Disable TOTP authentication
await client.api.delete("/auth/mfa/totp", toConfig(ticket.token));
await client.api.delete(
"/auth/mfa/totp",
{},
toConfig(ticket.token),
);
setMFA({
...mfa!,