Integration guide
Render a hosted Flow.
Login-method selection and code verification are server-authored Flow states. The same real FlowRenderer component renders both, submits advertised actions, and handles validation errors.
- Use @plazia/identity-elements together with @plazia/identity-frontend-sdk in an existing hosted Flow renderer. Ordinary application sign-in starts through the SvelteKit adapter instead.
- Pass the current server-authored AuthFlowPresentation and the host’s AuthFlowClient to this component. Keep continuation credentials on the server when using the BFF.
- FlowRenderer selects the UI from flow.state and flow.actions. It calls the supplied client for method selection, code verification, resends, and browser handoffs; it does not invent action IDs or provision an application.
HostedFlow.svelte
<script lang="ts">
import { FlowRenderer } from
"@plazia/identity-elements";
import type { ComponentProps } from "svelte";
let props: ComponentProps<typeof FlowRenderer>
= $props();
</script>
<FlowRenderer {...props} />