UNPKG

decocms

Version:

Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools

26 lines (23 loc) • 532 B
import type { BetterAuthClientPlugin } from "better-auth"; import type { SSOPlugin } from "./index"; interface SSOClientOptions { domainVerification?: | { enabled: boolean; } | undefined; } export const ssoClient = <CO extends SSOClientOptions>( options?: CO | undefined, ) => { return { id: "sso-client", $InferServerPlugin: {} as SSOPlugin<{ domainVerification: { enabled: CO["domainVerification"] extends { enabled: true } ? true : false; }; }>, } satisfies BetterAuthClientPlugin; };