mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 20:37:44 +00:00
feat: MCP plugin (#2666)
* chore: wip * wip * feat: mcp plugin * wip * chore: fix lock file * clean up * schema * docs * chore: lint * chore: release v1.2.9-beta.1 * blog * chore: lint
This commit is contained in:
16
examples/nextjs-mcp/lib/auth.ts
Normal file
16
examples/nextjs-mcp/lib/auth.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { betterAuth } from "better-auth";
|
||||
import { mcp } from "better-auth/plugins";
|
||||
import Database from "better-sqlite3";
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: new Database("./auth.db"),
|
||||
baseURL: "http://localhost:3000",
|
||||
plugins: [
|
||||
mcp({
|
||||
loginPage: "/login",
|
||||
}),
|
||||
],
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user