mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 20:37:44 +00:00
chore: update kysley to 0.28.2
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
|||||||
oAuthProxy,
|
oAuthProxy,
|
||||||
openAPI,
|
openAPI,
|
||||||
customSession,
|
customSession,
|
||||||
mcp,
|
|
||||||
} from "better-auth/plugins";
|
} from "better-auth/plugins";
|
||||||
import { reactInvitationEmail } from "./email/invitation";
|
import { reactInvitationEmail } from "./email/invitation";
|
||||||
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
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 { passkey } from "better-auth/plugins/passkey";
|
||||||
import { stripe } from "@better-auth/stripe";
|
import { stripe } from "@better-auth/stripe";
|
||||||
import { Stripe } from "stripe";
|
import { Stripe } from "stripe";
|
||||||
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 || "";
|
||||||
@@ -52,7 +50,10 @@ const STARTER_PRICE_ID = {
|
|||||||
|
|
||||||
export const auth = betterAuth({
|
export const auth = betterAuth({
|
||||||
appName: "Better Auth Demo",
|
appName: "Better Auth Demo",
|
||||||
database: new Database("auth.db"),
|
database: {
|
||||||
|
dialect: libsql,
|
||||||
|
type: "sqlite",
|
||||||
|
},
|
||||||
emailVerification: {
|
emailVerification: {
|
||||||
async sendVerificationEmail({ user, url }) {
|
async sendVerificationEmail({ user, url }) {
|
||||||
const res = await resend.emails.send({
|
const res = await resend.emails.send({
|
||||||
@@ -114,9 +115,6 @@ export const auth = betterAuth({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
mcp({
|
|
||||||
loginPage: "/sign-in",
|
|
||||||
}),
|
|
||||||
organization({
|
organization({
|
||||||
async sendInvitationEmail(data) {
|
async sendInvitationEmail(data) {
|
||||||
await resend.emails.send({
|
await resend.emails.send({
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
"framer-motion": "^11.13.1",
|
"framer-motion": "^11.13.1",
|
||||||
"geist": "^1.3.1",
|
"geist": "^1.3.1",
|
||||||
"input-otp": "^1.4.1",
|
"input-otp": "^1.4.1",
|
||||||
"kysely": "^0.27.4",
|
"kysely": "^0.28.2",
|
||||||
"lucide-react": "^0.477.0",
|
"lucide-react": "^0.477.0",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"mysql2": "^3.11.5",
|
"mysql2": "^3.11.5",
|
||||||
|
|||||||
@@ -664,7 +664,7 @@
|
|||||||
"better-call": "catalog:",
|
"better-call": "catalog:",
|
||||||
"defu": "^6.1.4",
|
"defu": "^6.1.4",
|
||||||
"jose": "^5.9.6",
|
"jose": "^5.9.6",
|
||||||
"kysely": "^0.28.1",
|
"kysely": "^0.28.2",
|
||||||
"nanostores": "^0.11.3",
|
"nanostores": "^0.11.3",
|
||||||
"zod": "^3.24.1"
|
"zod": "^3.24.1"
|
||||||
},
|
},
|
||||||
|
|||||||
20
pnpm-lock.yaml
generated
20
pnpm-lock.yaml
generated
@@ -77,7 +77,7 @@ importers:
|
|||||||
version: 0.12.0
|
version: 0.12.0
|
||||||
'@libsql/kysely-libsql':
|
'@libsql/kysely-libsql':
|
||||||
specifier: ^0.4.1
|
specifier: ^0.4.1
|
||||||
version: 0.4.1(kysely@0.27.6)
|
version: 0.4.1(kysely@0.28.2)
|
||||||
'@number-flow/react':
|
'@number-flow/react':
|
||||||
specifier: ^0.5.5
|
specifier: ^0.5.5
|
||||||
version: 0.5.9(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
version: 0.5.9(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
||||||
@@ -226,8 +226,8 @@ importers:
|
|||||||
specifier: ^1.4.1
|
specifier: ^1.4.1
|
||||||
version: 1.4.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
version: 1.4.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
|
||||||
kysely:
|
kysely:
|
||||||
specifier: ^0.27.4
|
specifier: ^0.28.2
|
||||||
version: 0.27.6
|
version: 0.28.2
|
||||||
lucide-react:
|
lucide-react:
|
||||||
specifier: ^0.477.0
|
specifier: ^0.477.0
|
||||||
version: 0.477.0(react@19.1.0)
|
version: 0.477.0(react@19.1.0)
|
||||||
@@ -1474,7 +1474,7 @@ importers:
|
|||||||
specifier: ^5.9.6
|
specifier: ^5.9.6
|
||||||
version: 5.10.0
|
version: 5.10.0
|
||||||
kysely:
|
kysely:
|
||||||
specifier: ^0.28.1
|
specifier: ^0.28.2
|
||||||
version: 0.28.2
|
version: 0.28.2
|
||||||
nanostores:
|
nanostores:
|
||||||
specifier: ^0.11.3
|
specifier: ^0.11.3
|
||||||
@@ -14026,10 +14026,6 @@ packages:
|
|||||||
kuler@2.0.0:
|
kuler@2.0.0:
|
||||||
resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==}
|
resolution: {integrity: sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==}
|
||||||
|
|
||||||
kysely@0.27.6:
|
|
||||||
resolution: {integrity: sha512-FIyV/64EkKhJmjgC0g2hygpBv5RNWVPyNCqSAD7eTCv6eFWNIi4PN1UvdSJGicN/o35bnevgis4Y0UDC0qi8jQ==}
|
|
||||||
engines: {node: '>=14.0.0'}
|
|
||||||
|
|
||||||
kysely@0.28.2:
|
kysely@0.28.2:
|
||||||
resolution: {integrity: sha512-4YAVLoF0Sf0UTqlhgQMFU9iQECdah7n+13ANkiuVfRvlK+uI0Etbgd7bVP36dKlG+NXWbhGua8vnGt+sdhvT7A==}
|
resolution: {integrity: sha512-4YAVLoF0Sf0UTqlhgQMFU9iQECdah7n+13ANkiuVfRvlK+uI0Etbgd7bVP36dKlG+NXWbhGua8vnGt+sdhvT7A==}
|
||||||
engines: {node: '>=18.0.0'}
|
engines: {node: '>=18.0.0'}
|
||||||
@@ -23014,10 +23010,10 @@ snapshots:
|
|||||||
- bufferutil
|
- bufferutil
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
|
|
||||||
'@libsql/kysely-libsql@0.4.1(kysely@0.27.6)':
|
'@libsql/kysely-libsql@0.4.1(kysely@0.28.2)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@libsql/client': 0.8.1
|
'@libsql/client': 0.8.1
|
||||||
kysely: 0.27.6
|
kysely: 0.28.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- bufferutil
|
- bufferutil
|
||||||
- utf-8-validate
|
- utf-8-validate
|
||||||
@@ -30097,7 +30093,7 @@ snapshots:
|
|||||||
'@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.27.4)
|
'@babel/plugin-syntax-typescript': 7.27.1(@babel/core@7.27.4)
|
||||||
'@vanilla-extract/babel-plugin-debug-ids': 1.2.0
|
'@vanilla-extract/babel-plugin-debug-ids': 1.2.0
|
||||||
'@vanilla-extract/css': 1.17.2(babel-plugin-macros@3.1.0)
|
'@vanilla-extract/css': 1.17.2(babel-plugin-macros@3.1.0)
|
||||||
esbuild: 0.17.6
|
esbuild: 0.19.12
|
||||||
eval: 0.1.8
|
eval: 0.1.8
|
||||||
find-up: 5.0.0
|
find-up: 5.0.0
|
||||||
javascript-stringify: 2.1.0
|
javascript-stringify: 2.1.0
|
||||||
@@ -36526,8 +36522,6 @@ snapshots:
|
|||||||
|
|
||||||
kuler@2.0.0: {}
|
kuler@2.0.0: {}
|
||||||
|
|
||||||
kysely@0.27.6: {}
|
|
||||||
|
|
||||||
kysely@0.28.2: {}
|
kysely@0.28.2: {}
|
||||||
|
|
||||||
lambda-local@2.2.0:
|
lambda-local@2.2.0:
|
||||||
|
|||||||
Reference in New Issue
Block a user