Skip to main content
@stackone/hub ships a framework-agnostic custom element (<stackone-hub>) you can drop into any HTML page with a <script> tag.
1

Add the script

Point a <script> tag at the IIFE bundle on a CDN. The script is side-effecting — it registers <stackone-hub> on customElements.
If you’d rather install via npm and bundle the script yourself, see the framework guides (React, Vue, Svelte, Angular) for the import '@stackone/hub/webcomponent' pattern.
2

Get a session token from your backend

3

Add the element and listen for events

Attribute reference

All scalar StackOneHub props map to kebab-case HTML attributes.

Events

Callbacks are dispatched as CustomEvents on the host element with bubbles: true and composed: true.

Next steps

Backend setup

Generate session tokens from your backend.

Filter connectors

Restrict the Hub to a single provider or category.