Redirect to Mobile Module

The Redirect to Mobile module bridges desktop-initiated verifications to mobile devices: it generates a QR code (and optional SMS link) that hands the user off

📘

This guide is specific to Web SDK 2.0. If you are still using 1.x, you can find documentation here. Contact your Incode Representative for upgrade information and check if you are a candidate for this upgrade.

Full rollout to all clients still TBD.


The Redirect to Mobile module bridges desktop-initiated verifications to mobile devices: it generates a QR code (and optional SMS link) that hands the user off to their phone, where camera-bearing modules (selfie, ID capture) continue. Used when desktop browsers can't deliver the verification experience the customer needs.

Combines composite / orchestrator and backend-process traits — fetches the redirect URL, polls onboarding status, and emits finished once the mobile device completes the flow.

Tag

<incode-redirect-to-mobile> is a standard Web Component. Importing the UI subpath registers the custom element; importing the CSS applies the module's styles.

import '@incodetech/web/redirect-to-mobile';
import '@incodetech/web/redirect-to-mobile/styles.css';

Properties

PropertyTypeRequiredDescription
configRedirectToMobileConfigConfiguration options
onFinish() => voidCalled when the mobile flow completes
onError(error: string) => voidCalled when an error occurs

Configuration

type RedirectToMobileConfig = {
  flowId?: string;
  url?: string;
  disableSmsOption?: boolean;
  addContinueToDesktop?: boolean;
  qrPhishingResistance?: boolean;
  authHint?: string;
  externalId?: string;
  lang?: string;
};
OptionTypeRequiredDescription
flowIdstringSession flow ID; injected by the orchestrator.
urlstringPre-computed redirect URL. When omitted, the module fetches one from the backend.
disableSmsOptionbooleanHide the SMS-link option (QR only).
addContinueToDesktopbooleanShow a "Continue on desktop" affordance for users who'd rather not switch.
qrPhishingResistancebooleanEnable the QR anti-phishing handshake (rotates urlUuid on mount; validates on the mobile leg).
authHintstringQR/auth hint for the mobile leg.
externalIdstringForwarded to the new mobile session.
langstringForwarded language code.

State machine

RedirectToMobileState is a discriminated union over status:

StatusDescription
idleInitial state.
loadingFetching the redirect URL (or warming the QR).
redirectingQR / SMS option visible; polling onboarding status. User completes flow on mobile.
finishedMobile flow completed (status moved to ONBOARDING_FINISHED).
closedUser dismissed.
errorFatal error.

Behind the scenes the module polls onboarding status (ONBOARDING_NOT_STARTEDONBOARDING_IN_PROGRESSONBOARDING_FINISHED) and surfaces only the user-relevant transitions.

See also