Skip to main content

Embedded Sign-Up Flow (V1)

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

executeEmbeddedSignUpFlow drives a step-by-step registration flow without a browser redirect.

note

For new integrations, prefer executeEmbeddedSignUpFlowV2.

executeEmbeddedSignUpFlow(config)​

Execute a step in the embedded registration flow.

import { executeEmbeddedSignUpFlow, EmbeddedFlowType } from '@thunderid/javascript'

const response = await executeEmbeddedSignUpFlow({
baseUrl: 'https://<DATA_PLANE_URL>',
payload: {
flowType: EmbeddedFlowType.Registration,
// step-specific fields
},
})

Parameters​

ParameterTypeRequiredDescription
config.urlstring✅Full endpoint URL. Mutually exclusive with baseUrl
config.baseUrlstring✅Choreo Identity & Access Management base URL
config.payloadEmbeddedFlowExecuteRequestPayload✅Flow step payload
config.payload.flowTypeEmbeddedFlowType✅Must be EmbeddedFlowType.Registration
config.payload.flowIdstring❌Flow ID from a previous step response
config.payload.selectedAuthenticatorobject❌Authenticator selection (for later steps)

Response: EmbeddedFlowExecuteResponse​

PropertyTypeDescription
flowIdstringFlow identifier
flowStatusEmbeddedFlowStatusIncomplete or Complete
typeEmbeddedFlowResponseTypeView (render UI) or Redirection
dataEmbeddedFlowComponent[]UI component tree to render for the current step

Enums​

EmbeddedFlowType​

ValueDescription
AuthenticationSign-in flow
RegistrationSign-up flow
RecoveryAccount recovery flow
UserOnboardingPost-sign-in onboarding flow

EmbeddedFlowStatus​

ValueDescription
IncompleteMore steps required
CompleteFlow has finished

EmbeddedFlowResponseType​

ValueDescription
ViewThe data field contains a component tree to render
RedirectionThe user should be redirected to data.redirectUrl

EmbeddedFlowComponentType​

ValueDescription
ButtonInteractive button
CheckboxCheckbox input
DividerVisual divider
FormForm container
ImageImage element
InputText/password/email input
RadioRadio button
SelectDropdown select
TypographyDisplay text

Error Response​

When a flow step fails, the function throws with an EmbeddedFlowExecuteErrorResponse:

PropertyTypeDescription
codestringError code
messagestringShort error message
descriptionstringDetailed error description
flowTypeEmbeddedFlowTypeThe flow type that failed

Was this page helpful?