diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index dc9ef818..72c629c1 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -8,7 +8,7 @@ import { twoFactor, oneTap, oAuthProxy, - createAuthEndpoint, + openAPI, } from "better-auth/plugins"; import { reactInvitationEmail } from "./email/invitation"; import { LibsqlDialect } from "@libsql/kysely-libsql"; @@ -18,7 +18,6 @@ import { MysqlDialect } from "kysely"; import { createPool } from "mysql2/promise"; import { nextCookies } from "better-auth/next-js"; import { customSession } from "./auth/plugins/custom-session"; -import { openAPI } from "@better-auth/open-api"; const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev"; const to = process.env.TEST_EMAIL || ""; diff --git a/demo/nextjs/package.json b/demo/nextjs/package.json index 1720e599..6dfbca50 100644 --- a/demo/nextjs/package.json +++ b/demo/nextjs/package.json @@ -11,7 +11,6 @@ "lint": "next lint" }, "dependencies": { - "@better-auth/open-api": "workspace:1.0.0-canary.12", "@better-fetch/fetch": "1.1.12", "@hookform/resolvers": "^3.9.0", "@libsql/client": "^0.12.0", diff --git a/docs/app/docs/[[...slug]]/page.tsx b/docs/app/docs/[[...slug]]/page.tsx index a0d4fcce..86d90687 100644 --- a/docs/app/docs/[[...slug]]/page.tsx +++ b/docs/app/docs/[[...slug]]/page.tsx @@ -14,7 +14,6 @@ import { ForkButton } from "@/components/fork-button"; import Link from "next/link"; import defaultMdxComponents from "fumadocs-ui/mdx"; import { AutoTypeTable } from "fumadocs-typescript/ui"; -import { openapi } from '@/app/source'; export default async function Page({ params, @@ -74,11 +73,9 @@ export default async function Page({ Features, ForkButton, DatabaseTable, - APIPage: openapi.APIPage, iframe: (props) => (