feat: move totp and passkeys into plugins (C1)

This commit is contained in:
LukeGus committed 2026-09-24 16:57:24 -05:00
1 parent f4f26a9b8b
commit 5c18435105
235 files changed
+22545 -5610

No files matched your search

+4 -3
View File
@@ -3,8 +3,9 @@ import { Button } from "@/components/button.tsx";
import { Input } from "@/components/input.tsx";
import { Shield, Loader2 } from "lucide-react";
import { useTranslation } from "react-i18next";
import type { MFAPromptMode } from "@termix/plugin-sdk/frontend";
export type MFAPromptMode = "totp" | "password" | "menu" | "push";
export type { MFAPromptMode };
interface TOTPDialogProps {
isOpen: boolean;
@@ -19,7 +20,7 @@ interface TOTPDialogProps {
export function TOTPDialog({
isOpen,
prompt,
mode = "totp",
mode,
waiting = false,
onSubmit,
onCancel,
@@ -38,7 +39,7 @@ export function TOTPDialog({
const isPush = mode === "push";
const isMenu = mode === "menu";
const isTotp = mode === "totp";
const isTotp = !isPush && !isMenu && mode !== "password";
const showWaiting = waiting || (isPush && pushSubmitted);
// FortiToken-style prompts ask for a numeric code or the literal word
// "push", so the field can't be restricted to digits only.