
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@authenticins/widget
Advanced tools
A plug and play embedded widget for Authentic's Insurance Portal.
A plug and play embedded widget for Authentic's Insurance Portal.
npm install @authenticins/widget
Or
<script src='https://www.unpkg.com/@authenticins/widget@latest/dist/authenticWidget.js'></script>
authenticWidget.init();
When calling the init() method, you can optionally pass a configuration object to customize the look and behavior of the widget. You can also application pre-fill data on behalf of your end user (see the full WidgetConfig interface definition below).
authenticWidget.init({
insurancePortal: {
url: 'https://tenant-name.prod.authenticinsurance.com',
targetSelector: '#authentic-insurance-portal'
},
prefillData: {
meta: {
email: 'user@email.com',
stateCodes: ['OH']
}
},
themeOverrides: {
primaryColor: '#000000',
borderRadius: 6,
brand: {
name: 'Example Tenant Name',
logoUrls: {
light: 'https://example-tenant-website.com/logo-white.png',
dark: 'https://example-tenant-website.com/logo.png',
},
faviconUrl: 'https://example-tenant-website.com/favicon.ico'
}
}
});
interface WidgetConfig {
insurancePortal?: {
url?: string;
// The CSS selector for the element you want the Insurance Portal injected into.
targetSelector?: string;
funnelFlow?: 'lead-form' | 'welcome';
}
prefillData?: {
meta?: {
email?: string;
businessClassCode?: string;
stateCodes?: string[];
productIds?: string[];
}
answers?: {
// Where each key is a field's name, mapped to its value (e.g. { 'BUSINESS_LEGAL_NAME': 'Example Business' });
questions?: Record<string, string>;
exposures?: Array<{
id: string;
exposureName: string;
// Same format as described above.
fieldValues: Record<string, string>;
}>;
}
}
themeOverrides?: {
useDarkMode?: boolean,
primaryColor?: string;
borderRadius?: number;
brand?: {
name?: string;
logoUrls?: {
light?: string;
dark?: string;
}
faviconUrl?: string;
}
layout?: {
hideNavbar?: boolean;
hideFooter?: boolean;
};
}
}
If using a framework such as React, utilize the init and destroy methods between renders.
function App({ prefillData }) {
useEffect(() => {
authenticWidget.init({ prefillData });
return () => { authenticWidget.destroy(); }
}, [prefillData]);
}
FAQs
A plug and play embedded widget for Authentic's Portal.
We found that @authenticins/widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.