@modfolio/connect-sdkBase export — types, config, verifyToken, helpers
ConnectUserverifyTokenpkcetenant.*amr.*
Like “Sign in with Google”, but for these services. Sign up once and the same account opens every service that supports Connect.
How it worksDifferent brands, different screens. Only the sign-in is shared — and the list is growing.
See allReal situations instead of jargon. Six separate layers each guard the account.
See the six layersRegister an app and switch sign-in on with one line of SDK. Schools and companies, talk to us.
Developer guideFramework 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.
// 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.
@modfolio/connect-sdkBase export — types, config, verifyToken, helpers
ConnectUserverifyTokenpkcetenant.*amr.*@modfolio/connect-sdk/astroAstro adapter — middleware + login/callback/logout handler
createAstroAuth()@modfolio/connect-sdk/sveltekitSvelteKit adapter — handle hook + handler set
createSvelteKitAuth()@modfolio/connect-sdk/solidstartSolidStart adapter
createSolidStartAuth()@modfolio/connect-sdk/qwikQwik adapter
createQwikAuth()@modfolio/connect-sdk/nuxtNuxt adapter
createNuxtAuth()@modfolio/connect-sdk/honoHono (CF Workers) adapter
createHonoAuth()@modfolio/connect-sdk/ssfReal-time security-signal receiver (OpenID SSF v1.0) — events such as session revocation
createSSFReceiver()@modfolio/connect-sdk/dpopDPoP proof token generation and verification (RFC 9449)
createDPoPProof()verifyDPoPProof()@modfolio/connect-sdk/fedcmFedCM browser helpers (Chrome FedCM API)
isFedCMSupported()fedcmLogin()@modfolio/connect-sdk/agentAI-agent delegation helpers (MCP)
getAgentToken()delegateToAgent()isAgentToken()getDelegationChain()getAgentInfo()