← Post Messages
The connect widget uses post messages to communicate with the parent window.
The onPostMessage function is used to send messages to the parent window.
const onPostMessage = (event: string, data?: object) => {
console.log('onPostMessage', event, data)
}Post Message Events
| Type | Description | Data |
|---|---|---|
mx/connect/backToSearch |
Triggers when an end user selects a button that will navigate them to the search institution step in the Connect Widget. Used in relation with disable_institution_search config option. |
{} |
mx/connect/loaded |
Triggers when the Connect Widget has loaded. initial_step can be connected, disclosure, enterCreds, loginError, mfa, search, verifyExistingMember or verifyMfa. |
{ |
mx/connect/initialDataReady |
Triggers when the initial data for a job on a member is complete and ready for use. | { |
mx/connect/enterCredentials |
Triggers when a user submits credentials for a given institution for the first time. | { |
mx/connect/institutionSearch |
Triggers when the end user searches for an institution. | { |
mx/connect/selectedInstitution |
Triggers when the end user selects an institution from the institution list. | { |
mx/connect/invalidData |
Triggers when there are no valid demand deposit (DDA) accounts on the member. Current options for code: 1000 |
{ |
mx/connect/invalidData/primaryAction |
Triggered when the user clicks the "Try again" option on the invalid data step. | { |
mx/connect/memberConnected |
Triggers when a member has successfully connected and the data you requested in your config has finished aggregating. | { |
mx/connect/memberConnected/primaryAction |
Triggered when the user clicks the primary button on the member connected step. | {} |
mx/connect/memberError |
Triggers when a member has encountered an error state. | { |
mx/connect/createMemberError |
Triggers when a member failed to get created when credentials were entered. | { |
mx/connect/memberDeleted |
Triggers when a member has been deleted in the widget. | { |
mx/connect/memberStatusUpdated |
Triggers when a members connection status has changed while connecting. This is useful in determing the current connection status of the member. | { |
mx/connect/oauthError |
Triggered when the user lands on the OAuth error page. | { |
mx/connect/oauthRequested |
Triggers when the user navigates to the OAuth provider's site. Note that the redirect does not happen in WebViews. | { |
mx/connect/stepChange |
Triggers when the end user changes from one "step" to another. | { |
mx/connect/submitMfa |
Triggers when a user submits an MFA answer. | { |
mx/connect/updateCredentials |
Triggers when a user submits credentials while trying to update their existing credentials. | { |