Skip to main content

Embedded Sign-Up Flow (V1)

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://localhost:8090',
payload: {
flowType: EmbeddedFlowType.Registration,
// step-specific fields
},
})

Parameters

ParameterTypeRequiredDescription
config.urlstringFull endpoint URL. Mutually exclusive with baseUrl
config.baseUrlstringThunderID base URL
config.payloadEmbeddedFlowExecuteRequestPayloadFlow step payload
config.payload.flowTypeEmbeddedFlowTypeMust be EmbeddedFlowType.Registration
config.payload.flowIdstringFlow ID from a previous step response
config.payload.selectedAuthenticatorobjectAuthenticator 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
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.Privacy PolicyCookie Policy