mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 20:27:44 +00:00
demo: fix dep issue
This commit is contained in:
@@ -9,11 +9,14 @@ import { reactInvitationEmail } from "./email/invitation";
|
|||||||
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
||||||
import { reactResetPasswordEmail } from "./email/rest-password";
|
import { reactResetPasswordEmail } from "./email/rest-password";
|
||||||
import { resend } from "./email/resend";
|
import { resend } from "./email/resend";
|
||||||
import Database from "better-sqlite3";
|
|
||||||
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
|
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
|
||||||
const to = process.env.TEST_EMAIL || "";
|
const to = process.env.TEST_EMAIL || "";
|
||||||
export const auth = betterAuth({
|
export const auth = betterAuth({
|
||||||
database: new Database("better-auth.db"),
|
database: new LibsqlDialect({
|
||||||
|
url: process.env.TURSO_DATABASE_URL || "",
|
||||||
|
authToken: process.env.TURSO_AUTH_TOKEN || "",
|
||||||
|
}),
|
||||||
emailAndPassword: {
|
emailAndPassword: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
async sendResetPassword(url, user) {
|
async sendResetPassword(url, user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user