feat: docs and new migration cli

This commit is contained in:
Bereket Engida
2024-09-02 09:41:45 +03:00
parent 3ac5916da7
commit 7234291718
40 changed files with 2692 additions and 815 deletions

15
docs/lib/auth.ts Normal file
View 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(),
],
});