diff --git a/src/features/onboarding/steps/step-sso-gate.tsx b/src/features/onboarding/steps/step-sso-gate.tsx new file mode 100644 index 00000000..d3049aeb --- /dev/null +++ b/src/features/onboarding/steps/step-sso-gate.tsx @@ -0,0 +1,41 @@ +"use client"; + +import { useOnboarding } from "@onboardjs/react"; +import { Button } from "@/components/ui/button"; +import { mockSsoConfig } from "@/features/onboarding/onboarding.mock"; + +export const StepSsoGate = () => { + const { next, updateContext, state } = useOnboarding(); + + const chooseProvider = async (providerId: string) => { + await updateContext({ flowData: { ...state?.context.flowData, sso: { providerId } } }); + await next(); + }; + + const continueWithEmail = async () => { + await next(); + }; + + return ( +
+ Sign in with your organisation provider, or continue with email. +
+