mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 20:37:44 +00:00
16 lines
313 B
TypeScript
16 lines
313 B
TypeScript
import { betterAuth } from "better-auth";
|
|
import { organization, twoFactor } from "better-auth/plugins";
|
|
export const auth = betterAuth({
|
|
baseURL: "http://localhost:3000",
|
|
database: {
|
|
provider: "sqlite",
|
|
url: "./db.sqlite",
|
|
},
|
|
plugins: [
|
|
twoFactor({
|
|
issuer: "My App",
|
|
}),
|
|
organization(),
|
|
],
|
|
});
|