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 { interface SetupData {
secret: string;
qrCode: string; qrCode: string;
manualKey: string; manualKey: string;
} }
@@ -101,7 +100,6 @@ export function MfaSetupModal({
const enableMutation = useMutation({ const enableMutation = useMutation({
mutationFn: (verificationCode: string) => mutationFn: (verificationCode: string) =>
enableMfa({ enableMfa({
secret: setupData!.secret,
verificationCode, verificationCode,
}), }),
onSuccess: (data) => { onSuccess: (data) => {
@@ -31,12 +31,10 @@ export interface MfaSetupRequest {
export interface MfaSetupResponse { export interface MfaSetupResponse {
method: string; method: string;
qrCode: string; qrCode: string;
secret: string;
manualKey: string; manualKey: string;
} }
export interface MfaEnableRequest { export interface MfaEnableRequest {
secret: string;
verificationCode: string; verificationCode: string;
} }