Skip to main content
ConnectFor teamsSign inDashboard
Resources · Developers

Sign-in wired up in one SDK line.

Framework adapters and AI-agent delegation helpers. Updates are additive-only — existing code keeps working unchanged. This page is a starting reference; for the full API, see the type definitions on GitHub.

— Quick start (60s)
// 1. Install the SDK (public npm — no token needed)
bun add @modfolio/connect-sdk

// 2. SvelteKit adapter example
// src/lib/server/auth.ts
import { createSvelteKitAuth } from "@modfolio/connect-sdk/sveltekit";
export const auth = createSvelteKitAuth({ clientId: "your-client-id" });

// src/hooks.server.ts
import { auth } from "$lib/server/auth";
export const handle = auth.handle;

Other frameworks (Astro · SolidStart · Qwik · Nuxt · Next.js · Hono) wire up the same way.

— export paths
CORE@modfolio/connect-sdk

Base export — types, config, verifyToken, helpers

  • ConnectUser
  • verifyToken
  • pkce
  • tenant.*
  • amr.*
ASTRO@modfolio/connect-sdk/astro

Astro adapter — middleware + login/callback/logout handler

  • createAstroAuth()
SVELTEKIT@modfolio/connect-sdk/sveltekit

SvelteKit adapter — handle hook + handler set

  • createSvelteKitAuth()
SOLID@modfolio/connect-sdk/solidstart

SolidStart adapter

  • createSolidStartAuth()
QWIK@modfolio/connect-sdk/qwik

Qwik adapter

  • createQwikAuth()
NUXT@modfolio/connect-sdk/nuxt

Nuxt adapter

  • createNuxtAuth()
HONO@modfolio/connect-sdk/hono

Hono (CF Workers) adapter

  • createHonoAuth()
SSF@modfolio/connect-sdk/ssf

Real-time security-signal receiver (OpenID SSF v1.0) — events such as session revocation

  • createSSFReceiver()
DPOP@modfolio/connect-sdk/dpop

DPoP proof token generation and verification (RFC 9449)

  • createDPoPProof()
  • verifyDPoPProof()
FEDCM@modfolio/connect-sdk/fedcm

FedCM browser helpers (Chrome FedCM API)

  • isFedCMSupported()
  • fedcmLogin()
MCP@modfolio/connect-sdk/agent

AI-agent delegation helpers (MCP)

  • getAgentToken()
  • delegateToAgent()
  • isAgentToken()
  • getDelegationChain()
  • getAgentInfo()