mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 12:27:44 +00:00
* 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
17 lines
331 B
TypeScript
17 lines
331 B
TypeScript
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,
|
|
},
|
|
});
|