@cdx-extensions/di-sdk through a single React hook.
How It Works
When the member clicks the CD tile in their Candescent dashboard, Candescent loads our widget via Module Federation. The widget immediately callsuseUserContext() on the SDK singleton — Candescent’s platform injects the authenticated member’s context and the widget receives it without any additional handshake.
Getting the Member Context
fiId field is the key field for our backend — it determines which banking core (Finxact, FIS IBS, Corelation, Fiserv, Symitar) to route requests to for this institution.
Making Authenticated API Calls
All API calls — both to Candescent’s DevEx APIs and to our own Python backend — go through the SDK’s HTTP client. This client is a raw Axios instance (web: v1.14.0) and can call any absolute URL including external domains.Applying the FI’s Theme
The widget inherits the financial institution’s visual theme automatically throughuseBranding(). When embedded in OLB, do not wrap the widget in a ThemeProvider — this would override Candescent’s theme injection.
The standalone Prop
Every widget must handle a standalone prop to support local development without being connected to a live Candescent OLB instance.
standalone={true} only during local development. Never deploy with standalone={true}.
Session Lifecycle
| Event | Behavior |
|---|---|
| Member opens CD tile | Candescent mounts widget, SDK provides context immediately |
| Member completes a CD operation | Widget signals Candescent to reload the member’s account list |
| Member navigates away in OLB | Widget unmounts cleanly — no session to invalidate |
| Candescent session expires | OLB handles re-authentication — widget is not involved |
