Embed the provider authorization flow in your application
The Connect widget lets your end users authorize their CRM/PMS accounts directly from your application. It handles OAuth flows, credential entry, and connection management — you just embed it and receive a callback when the connection is ready.
import { RouteMCPConnect } from '@routemcp/connect-sdk';RouteMCPConnect.open({ token: "ct_abc123...", onSuccess: (connection) => { console.log("Connected:", connection.provider); // Now you can fetch data for this user }, onError: (error) => { console.error("Connection failed:", error); }, onClose: () => { console.log("Widget closed"); },});
The Connect widget’s appearance (colors, fonts, logo, dark mode) is configured from the RouteMCP dashboard under SDK Config. No code changes needed — the widget automatically picks up your branding.