diff --git a/src/features/onboarding/steps/step-security.tsx b/src/features/onboarding/steps/step-security.tsx new file mode 100644 index 00000000..96d6e269 --- /dev/null +++ b/src/features/onboarding/steps/step-security.tsx @@ -0,0 +1,36 @@ +"use client"; + +import { useOnboarding } from "@onboardjs/react"; +import { Button } from "@/components/ui/button"; +import { mockSsoConfig } from "@/features/onboarding/onboarding.mock"; + +export const StepSecurity = () => { + const { next, updateContext, state } = useOnboarding(); + + const choose = async (method: "passkey" | "two-factor") => { + await updateContext({ flowData: { ...state?.context.flowData, security: { method } } }); + await next(); + }; + + return ( +
+
+

Secure your account

+

+ {mockSsoConfig.passkeyEnabled + ? "Set up a passkey for faster, safer sign-in." + : "Set up two-factor authentication to protect your account."} +

+
+ {mockSsoConfig.passkeyEnabled ? ( + + ) : ( + + )} +
+ ); +};