mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
feat: docs and new migration cli
This commit is contained in:
15
docs/lib/auth.ts
Normal file
15
docs/lib/auth.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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(),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user