mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-22 14:21:55 -05:00
18 lines
360 B
TypeScript
18 lines
360 B
TypeScript
import { betterAuth } from "better-auth";
|
|
import { prismaAdapter } from "better-auth/adapters/prisma";
|
|
import { twoFactor } from "better-auth/plugins";
|
|
|
|
export const auth = betterAuth({
|
|
baseURL: "http://localhost:4000",
|
|
database: prismaAdapter(
|
|
{},
|
|
{
|
|
provider: "sqlite",
|
|
},
|
|
),
|
|
emailAndPassword: {
|
|
enabled: true,
|
|
},
|
|
plugins: [twoFactor()],
|
|
});
|