Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt

Use this file to discover all available pages before exploring further.

Insights Feed Widget
The insights feed is Tesouro’s intelligent news feed showing users relevant tasks, offers, and warnings on their account. We recommend pairing it with the balances component on your banking dashboard to keep users informed.

React

import { EmbeddedProvider, InsightsWidget } from '@tesouro/embedded-components-react';

export default function InsightsPage() {
  return (
    <EmbeddedProvider
      userId={currentUser.id}
      userEmail={currentUser.email}
      widgetTokenRefreshUrl="/api/widget-token"
    >
      <InsightsWidget />
    </EmbeddedProvider>
  );
}

Web components

<embedded-insights-feed-widget
  data-user-id="YOUR_USER_ID"
  data-widget-token-refresh-url="/api/widget-token"
></embedded-insights-feed-widget>