fix: correctly specify headers when removing MFA

This commit is contained in:
Paul Makles committed 2022-09-08 11:19:26 +01:00
1 parent 02eb7d83f6
commit ff57dbddba
2 files changed
+6 -2

No files matched your search

+1 -1
@@ -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!,