> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Account Linking - StackOne Hub

> Let end-users authenticate and connect their accounts to your system

The **StackOne Hub** allows your end-users to authenticate and connect their accounts into your application or agent. The Hub can either be embedded in your code, or for a no-code approach, you can generate a StackOne hosted web link you share with them that has the Hub pre-embedded.

## How it works

1. Your backend creates a [connect session](https://docs.stackone.com/embed/connect-session.md) and returns its **session token** to your frontend.
2. Display the **Hub** (or share an [Auth Link](https://docs.stackone.com/embed/account-linking/auth-link.md)) with that token. The end-user selects a connector and authenticates.
3. On a successful link, the **account ID** is returned via callback, event, or the `account.created` [webhook](https://docs.stackone.com/connect/webhooks.md).
4. Use that account ID to [call actions](https://docs.stackone.com/embed/call-actions/overview) on the account from your product.

![StackOne Hub - Connector Selection](https://mintcdn.com/stackone-60/zwNwud3MEpkn5Lar/images/hub-connector-listing.png?fit=max\&auto=format\&n=zwNwud3MEpkn5Lar\&q=85\&s=c59d43c73d5b7e6699a76ce519ab53b9)

![StackOne Hub - Credential Entry](https://mintcdn.com/stackone-60/zwNwud3MEpkn5Lar/images/hub-credential-entry.png?fit=max\&auto=format\&n=zwNwud3MEpkn5Lar\&q=85\&s=49463d5617abd44d38fe52c565c76a52)

## Embed it or share a link

The Hub reaches your end-users two ways. Embed it in your product for a branded in-app flow, or share an [Auth Link](https://docs.stackone.com/embed/account-linking/auth-link.md), a StackOne-hosted page with the Hub already embedded, generated from the dashboard or programmatically.

> [!NOTE]
>
> You can also link an account directly from the dashboard, for internal tools or on a customer's behalf. See [Linking Accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard).

| | Embedded Hub | Auth Link |
| - | - | - |
| Where it runs | In your app | StackOne-hosted page |
| Frontend work | Install and mount the Hub | None: share a URL |
| Branding | Themed to match your app | StackOne-hosted |
| Knowing it worked | Callbacks or webhooks | Webhooks only |
| Best for | Production apps | Email flows, sales-led onboarding, demos |

## Ways to embed

> [card] [Hub (React)](https://docs.stackone.com/embed/account-linking/stackone-hub.md)
>
> The StackOne Hub as a native React component (`@stackone/hub`).

> [card] [Hub (Web Component)](https://docs.stackone.com/embed/account-linking/stackone-hub-web-component.md)
>
> The same Hub as a framework-agnostic custom element (`<stackone-hub>`) for non-React apps.

> [card] [Hub (Auth Link)](https://docs.stackone.com/embed/account-linking/auth-link.md)
>
> A StackOne hosted web page showing the Hub that can be shared directly with end-users.

> [!NOTE]
>
> Using the Legacy Hub? `@stackone/react-hub` remains available for existing implementations, but the Hub is required to fully support new features. Its setup and hook API are documented on [npm](https://www.npmjs.com/package/@stackone/react-hub).

## Next steps

> [card] [Call Actions](https://docs.stackone.com/embed/call-actions/overview)
>
> With the account linked, call its actions from your product over the Agent SDK, MCP, A2A, or RPC/HTTP.

> [card] [Getting Started](https://docs.stackone.com/embed/getting-started.md)
>
> Return to the end-to-end embedding journey.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.