FanID SDK
Add authentication and gated content to any website with a single script tag. Framework-agnostic, SEO-friendly, and ad-blocker resistant.
Features
Gated Content
Gate any content behind FanID authentication. Content stays in the DOM for SEO while being visually hidden from unauthenticated users.
Ad-Blocker Resistant
Randomized CSS class names prevent ad blockers from targeting gating overlays. Styles are regenerated on every page load.
Framework Agnostic
Works with React, Vue, Angular, WordPress, or plain HTML. Install via npm or add a script tag.
Minimal Configuration
Pass your tenant URL to FanIDWidget.init() — that's it. No org ID, no API keys, no client-side secrets.
SEO Friendly
Gated content remains in the HTML source for search engine indexing. Crawlers see everything.
Three Gating Methods
Custom Elements, data attributes, or full programmatic control via the JavaScript API.