This commit is contained in:
Philipinho
2026-06-27 00:49:39 +01:00
parent 303b6a048f
commit 186a0bf71b
3 changed files with 1 additions and 5 deletions
@@ -47,7 +47,6 @@ interface MfaSetupModalProps {
}
interface SetupData {
secret: string;
qrCode: string;
manualKey: string;
}
@@ -101,7 +100,6 @@ export function MfaSetupModal({
const enableMutation = useMutation({
mutationFn: (verificationCode: string) =>
enableMfa({
secret: setupData!.secret,
verificationCode,
}),
onSuccess: (data) => {
@@ -31,12 +31,10 @@ export interface MfaSetupRequest {
export interface MfaSetupResponse {
method: string;
qrCode: string;
secret: string;
manualKey: string;
}
export interface MfaEnableRequest {
secret: string;
verificationCode: string;
}