ConnectEmbeddable OAuth

Your users connect their social accounts inside your app.

Embed OAuth flows for 13+ social platforms with one integration. SocialRouter handles the token exchange, storage, refresh, and revocation. You get a connection ID.

Stop building OAuth from scratch.

Every platform has its own OAuth quirks, token formats, and refresh policies. Connect handles all of it so you can focus on your product.

Building it yourself

  • Build OAuth for each platform separately
  • Store and encrypt tokens yourself
  • Handle token refresh and expiry
  • Monitor for API changes and breaking updates
  • Build revocation and reconnection flows
  • Manage per-platform rate limits

Using Connect

  • One redirect. All platforms.
  • Tokens stored and encrypted by SocialRouter
  • Automatic token refresh, forever
  • Platform API changes handled for you
  • Built-in reconnection prompts
  • Rate limits managed per connection

Three steps to connected accounts.

Redirect, authorize, done. Your user never leaves your brand experience.

Get a connect URL

Call getConnectUrl with the platform and a return URL. Redirect your user.

connect.js
// User clicks "Connect Twitter" in your app
const connectUrl = await socialRouter.getConnectUrl({
platform: 'twitter',
returnTo: 'https://yourapp.com/callback'
})
window.location.href = connectUrl

Enterprise-grade connection management.

Everything you need to offer social account connections to your customers, without building the infrastructure.

White-label

No SocialRouter branding in the OAuth flow. Your users see your app name and logo.

Per-tenant isolation

Each of your customers' connections are fully isolated. No data leaks between tenants.

Automatic token refresh

Tokens are refreshed before they expire. Connections stay valid indefinitely.

Encrypted token storage

OAuth tokens are AES-256 encrypted at rest. You never see or handle raw tokens.

Connection monitoring

Know instantly when a connection breaks. Webhook alerts for revocations and expiries.

Scoped permissions

Request only the OAuth scopes you need. Minimize the permissions your users grant.

manage-connections.js
// List all connections for a user
const connections = await socialRouter.listConnections({
userId: 'user_123'
})
// => [
// { id: 'conn_abc', platform: 'twitter', status: 'active' }
// { id: 'conn_def', platform: 'linkedin', status: 'active' }
// ]
// Disconnect a platform
await socialRouter.disconnect('conn_abc')
// Tokens are immediately revoked and deleted

Full lifecycle control.

List connections, check their status, and disconnect platforms cleanly. When a user disconnects, tokens are revoked on the platform and deleted from SocialRouter immediately.

  • Webhook alerts when connections break or tokens are revoked
  • Automatic reconnection prompts you can surface in your UI
  • Connection health dashboard in the SocialRouter admin panel

Let your users connect.

See how Connect fits your product. We'll walk you through the integration.