chore: update kysley to 0.28.2

This commit is contained in:
Bereket Engida
2025-05-31 09:14:05 -07:00
parent 5c864f4482
commit fd727e515d
4 changed files with 13 additions and 21 deletions

View File

@@ -9,7 +9,6 @@ import {
oAuthProxy,
openAPI,
customSession,
mcp,
} from "better-auth/plugins";
import { reactInvitationEmail } from "./email/invitation";
import { LibsqlDialect } from "@libsql/kysely-libsql";
@@ -21,7 +20,6 @@ import { nextCookies } from "better-auth/next-js";
import { passkey } from "better-auth/plugins/passkey";
import { stripe } from "@better-auth/stripe";
import { Stripe } from "stripe";
import Database from "better-sqlite3";
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
const to = process.env.TEST_EMAIL || "";
@@ -52,7 +50,10 @@ const STARTER_PRICE_ID = {
export const auth = betterAuth({
appName: "Better Auth Demo",
database: new Database("auth.db"),
database: {
dialect: libsql,
type: "sqlite",
},
emailVerification: {
async sendVerificationEmail({ user, url }) {
const res = await resend.emails.send({
@@ -114,9 +115,6 @@ export const auth = betterAuth({
},
},
plugins: [
mcp({
loginPage: "/sign-in",
}),
organization({
async sendInvitationEmail(data) {
await resend.emails.send({