Linked account declaration
This UI component is scheduled for deprecation and will be removed from the UI Library on 04 March 2025
Overview
To add a Linked Account via the Account Information Service (AIS) UI Component a user with a Controller role of the Identity must complete a Strong Customer Authentication (SCA) challenge to confirm ownership of the Linked Account.
If the SCA challenge fails, the Linked Account remains in the PENDING_CHALLENGE state until a successful SCA challenge is completed.
Embed the Linked Account Declaration UI Component
The Linked Account Declaration Component requires the below parameters in order to be initialized successfully.
To use Weavr UI components, you must first set up the Weavr UI library in your application and ensure that you have an authentication token set as per instruction.
linkedAccountDeclaration(linkedAccountId, options);
| Parameter | Type | Required? | Description |
|---|---|---|---|
linkedAccountId | string | Required | This property should be used to verify the Linked Account with the status PENDING_CHALLENGE. |
options | object | Optional | Add styling to the component. |
const linkedAccountDeclaration =
weavrComponents.prompt.linkedAccountDeclaration(linkedAccountId, options);
Mounting
To display the component on the screen, it's necessary to mount it to the DOM. This involves creating a wrapping element that will serve as the container for injecting the secure frame. Be sure to assign an id to the HTML element.
Upon mounting to the element target the component immediately calls the necessary APIs to populate the necessary data on screen.
<!--linked-account-declaration.html-->
<div id="linked-account-declaration-example"></div>
// secure-linked-account-declaration.js
const linkedAccountDeclaration =
weavrComponents.prompt.linkedAccountDeclaration(linkedAccountId, options);
linkedAccountDeclaration.mount("#linked-account-declaration-example");