fix: remove db falt config (#57)

* remove db object config

* change docs
This commit is contained in:
Bereket Engida
2024-10-01 17:18:53 +03:00
committed by GitHub
parent 9fdffd2d3f
commit d239682767
51 changed files with 264 additions and 589 deletions

View File

@@ -3,14 +3,12 @@ import { organization, passkey, twoFactor } from "better-auth/plugins";
import { reactInvitationEmail } from "./email/invitation";
import { reactResetPasswordEmail } from "./email/rest-password";
import { resend } from "./email/resend";
import Database from "better-sqlite3";
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
const to = process.env.TEST_EMAIL || "";
export const auth = betterAuth({
database: {
provider: "sqlite",
url: "./db.sqlite",
},
database: new Database("./db.sqlite"),
emailAndPassword: {
enabled: true,
async sendResetPassword(token, user) {