Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

⬆️ Upgrade to better-auth 1.4 and support joins (#2049)

Luke Vella8d2b4313f1c3
diff --git a/apps/web/package.json b/apps/web/package.json
index 928c802c7..dd2b4396b 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -13,7 +13,8 @@
"test:integration": "NODE_ENV=test playwright test",
"test:unit": "vitest run",
"test:codegen": "playwright codegen http://localhost:3000",
- "docker:start": "./scripts/docker-start.sh"
+ "docker:start": "./scripts/docker-start.sh",
+ "better-auth:generate": "pnpx @better-auth/cli@latest generate --config ./src/lib/auth.ts --output ../../packages/database/prisma/models/user.prisma"
},
"dependencies": {
"@ai-sdk/openai": "^2.0.28",
@@ -57,7 +58,7 @@
"ai": "^5.0.41",
"arctic": "^3.7.0",
"autoprefixer": "^10.4.13",
- "better-auth": "^1.3.31",
+ "better-auth": "^1.4.4",
"calendar-link": "^2.6.0",
"class-variance-authority": "^0.7.1",
"color-hash": "^2.0.2",
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 724fa7b15..d76ef34a9 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -220,7 +220,6 @@
"verifyEmail": "Verify your email",
"alreadyHaveAccount": "Already have an account? <a>Log in</a>",
"loginDescription": "Login to your account to continue",
- "userNotFound": "A user with that email doesn't exist",
"loginTitle": "Welcome",
"registerTitle": "Create Your Account",
"registerDescription": "Streamline your scheduling process and save time",
@@ -233,7 +232,6 @@
"quickCreateGetNotifications": "Get email notifications",
"quickCreateManagePollsFromAnyDevice": "Manage your polls from any device",
"loginVerifyTitle": "Finish Logging In",
- "loginVerifyDescription": "Check your email for the verification code",
"tooManyRequests": "Too many requests",
"tooManyRequestsDescription": "Please try again later.",
"billingSubscriptionDescription": "Manage your current subscription plan.",
@@ -559,5 +557,6 @@
"passwordStrength": "Password Strength",
"emailChangeInvalidUserId": "Please login with the same email address as the one you used to request the change.",
"ssoAuthenticationOnly": "Authentication is managed through Single Sign-On (SSO). Password management is not available.",
- "oidcAutoSignInDescription": "You are being redirected to the login page..."
+ "oidcAutoSignInDescription": "You are being redirected to the login page...",
+ "loginVerifyCheckEmail": "If an account exists with this email, you will receive a verification code at <b>{{email}}</b>"
}
diff --git a/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx b/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
index 5d060f34e..8acf15a89 100644
--- a/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/components/login-email-form.tsx
@@ -113,11 +113,6 @@ export function LoginWithEmailForm() {
if (res.error) {
switch (res.error.code) {
- case "USER_NOT_FOUND":
- form.setError("identifier", {
- message: t("userNotFound"),
- });
- break;
case "EMAIL_BLOCKED":
form.setError("identifier", {
message: t("authErrorsEmailBlocked"),
diff --git a/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx b/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
index 8003ef63b..3257b2890 100644
--- a/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
+++ b/apps/web/src/app/[locale]/(auth)/login/verify/page.tsx
@@ -37,8 +37,12 @@ export default async function VerifyPage() {
<Trans
t={t}
ns="app"
- i18nKey="loginVerifyDescription"
- defaults="Check your email for the verification code"
+ i18nKey="loginVerifyCheckEmail"
+ defaults="If an account exists with this email, you will receive a verification code at <b>{{email}}</b>"
+ values={{ email }}
+ components={{
+ b: <strong className="font-medium text-gray-800" />,
+ }}
/>
</AuthPageDescription>
</AuthPageHeader>
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.ts
index f99ce345e..f2f30d5b3 100644
--- a/apps/web/src/lib/auth.ts
+++ b/apps/web/src/lib/auth.ts
@@ -73,6 +73,9 @@ if (env.OIDC_CLIENT_ID && env.OIDC_CLIENT_SECRET && env.OIDC_DISCOVERY_URL) {
export const authLib = betterAuth({
appName: "Rallly",
secret: env.SECRET_PASSWORD,
+ experimental: {
+ joins: true,
+ },
emailAndPassword: {
enabled: env.EMAIL_LOGIN_ENABLED !== "false",
requireEmailVerification: true,
@@ -132,18 +135,22 @@ export const authLib = betterAuth({
// We're not actually using the sign-in type anymore since we just we have `autoSignInAfterVerification` enabled.
// This lets us keep things a bit simpler since we share the same verification flow for both login and registration.
case "sign-in":
- await emailClient.sendTemplate("RegisterEmail", {
- to: email,
- props: {
- code: otp,
- },
- });
+ waitUntil(
+ emailClient.sendTemplate("RegisterEmail", {
+ to: email,
+ props: {
+ code: otp,
+ },
+ }),
+ );
break;
case "email-verification":
- await emailClient.sendTemplate("RegisterEmail", {
- to: email,
- props: { code: otp },
- });
+ waitUntil(
+ emailClient.sendTemplate("RegisterEmail", {
+ to: email,
+ props: { code: otp },
+ }),
+ );
break;
}
},
@@ -399,3 +406,5 @@ export const getUserIdIfLoggedIn = async () => {
const session = await getSession();
return session?.user?.isGuest ? undefined : session?.user?.id;
};
+
+export default authLib;
diff --git a/apps/web/tests/authentication.spec.ts b/apps/web/tests/authentication.spec.ts
index 53a0d3c92..dc28e9326 100644
--- a/apps/web/tests/authentication.spec.ts
+++ b/apps/web/tests/authentication.spec.ts
@@ -23,22 +23,6 @@ test.describe.serial(() => {
});
test.describe("new user", () => {
- test("shows that user doesn't exist yet", async ({ page }) => {
- await page.goto("/login");
-
- // your login page test logic
- await page
- .getByPlaceholder("[email protected]")
- .fill(testUserEmail);
-
- await page.getByRole("button", { name: "Continue with email" }).click();
-
- // Make sure the user doesn't exist yet and that logging in is not possible
- await expect(
- page.getByText("A user with that email doesn't exist"),
- ).toBeVisible();
- });
-
test("user registration", async ({ page }) => {
const registerPage = new RegisterPage(page);
registerPage.goto();
diff --git a/packages/database/prisma/migrations/20251202151504_better_auth_joins/migration.sql b/packages/database/prisma/migrations/20251202151504_better_auth_joins/migration.sql
new file mode 100644
index 000000000..9728ffaa6
--- /dev/null
+++ b/packages/database/prisma/migrations/20251202151504_better_auth_joins/migration.sql
@@ -0,0 +1,14 @@
+/*
+ Warnings:
+
+ - A unique constraint covering the columns `[identifier]` on the table `verifications` will be added. If there are existing duplicate values, this will fail.
+
+*/
+-- CreateIndex
+CREATE INDEX "accounts_user_id_idx" ON "accounts"("user_id");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "verifications_identifier_key" ON "verifications"("identifier");
+
+-- CreateIndex
+CREATE INDEX "verifications_identifier_idx" ON "verifications"("identifier");
diff --git a/packages/database/prisma/models/user.prisma b/packages/database/prisma/models/user.prisma
index 673c3a356..2c0310b0b 100644
--- a/packages/database/prisma/models/user.prisma
+++ b/packages/database/prisma/models/user.prisma
@@ -1,3 +1,4 @@
+
enum TimeFormat {
hours12
hours24
@@ -25,6 +26,7 @@ model Account {
updatedAt DateTime @updatedAt @map("updated_at")
@@unique([provider, providerAccountId])
+ @@index([userId])
@@map("accounts")
}
@@ -114,11 +116,12 @@ model Session {
model Verification {
id String @id
- identifier String
+ identifier String @unique
value String
expiresAt DateTime @map("expires_at")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
@@map("verifications")
+ @@index([identifier])
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2f6270d36..6ac7f96e4 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -287,8 +287,8 @@ importers:
specifier: ^10.4.13
version: 10.4.21([email protected])
better-auth:
- specifier: ^1.3.31
+ specifier: ^1.4.4
calendar-link:
specifier: ^2.6.0
version: 2.8.0
@@ -1640,18 +1640,20 @@ packages:
resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==}
engines: {node: '>=6.9.0'}
- '@better-auth/[email protected]':
- resolution: {integrity: sha512-6G/zRTQ0RA3coUtjQztlWjOl021LjXEZVNxT9S5w60Uqc5n38atFCURiuebJwgGVuzUuWA6kRKRzW6LJNO8MLA==}
+ '@better-auth/[email protected]':
+ resolution: {integrity: sha512-mlhoHPhgIPZNX73kJp1YzID4uaFXH6xgcjcxm2bYwTClvpgsY/n8MtI65Uy/K4vVd6fUvgfQETAni7nUkGWF3w==}
peerDependencies:
'@better-auth/utils': 0.3.0
'@better-fetch/fetch': 1.1.18
- better-call: 1.0.19
+ better-call: 1.1.3
jose: ^6.1.0
kysely: ^0.28.5
nanostores: ^1.0.1
- '@better-auth/[email protected]':
- resolution: {integrity: sha512-dhvL7FuyfPlYV/gFhuzW0wkvV98VLapwgM5TEGS0T7EBC70mAqD9OpcwUDL6karcVIuEf6i+6K0Gw1TJguhoEw==}
+ '@better-auth/[email protected]':
+ resolution: {integrity: sha512-Eh18QPznmu0gL1vImas4PqEOEx57JJZEWfSSCHsGzcHcAEgX+QSh0fGhMERm4uInfBmDm2niTbu+/pUvVD+2kQ==}
+ peerDependencies:
+ '@better-auth/core': 1.4.4
'@better-auth/[email protected]':
resolution: {integrity: sha512-W+Adw6ZA6mgvnSnhOki270rwJ42t4XzSK6YWGF//BbVXL6SwCLWfyzBc1lN2m/4RM28KubdBKQ4X5VMoLRNPQw==}
@@ -2241,9 +2243,6 @@ packages:
resolution: {integrity: sha512-kjotm7XJrJ6v+7knhPaRgaT6q8F8K2jiafwYdNHLzmV0uGLuZY43FK6smNSHUPrhq5kX2slCUy+RGG/xGqmIKA==}
engines: {node: '>=10.13.0'}
- '@hexagon/[email protected]':
- resolution: {integrity: sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw==}
-
'@hono-rate-limiter/[email protected]':
resolution: {integrity: sha512-RSrVX5N2Oo/xXApskegu667cBVHyr8RXGWnbRDGjU2py8pN4BttEKSHA0iKi3BAwh1xSkENgDRng4tpFD9DbKg==}
peerDependencies:
@@ -2660,9 +2659,6 @@ packages:
'@leichtgewicht/[email protected]':
resolution: {integrity: sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==}
- '@levischuck/[email protected]':
- resolution: {integrity: sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow==}
-
'@mdx-js/[email protected]':
resolution: {integrity: sha512-/QxEhPAvGwbQmy1Px8F899L5Uc2KZ6JtXwlCgJmjSTBedwOZkByYcBG4GceIGPXRDsmfxhHazuS+hlOShRLeDw==}
@@ -3056,42 +3052,9 @@ packages:
resolution: {integrity: sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-t8A83hgghWQkcneRsgGs2ebAlRe54ns88p7ouv8PW2tzF1nAW4yHcL4uZKrFpIU+uszIRzTkcCuie37gpkId0A==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-p0SjJ3TuuleIvjPM4aYfvYw8Fk1Hn/zAVyPJZTtZ2eE9/MIer6/18ROxX6N/e6edVSfvuZBqhxAj3YgsmSjQ/A==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-ioigvA6WSYN9h/YssMmmoIwgl3RvZlAYx4A/9jD2qaqXZwGcNlAxaw54eSx2QG1Yu7YyBC5Rku3nNoHrQ16YsQ==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-t4eYGNhXtLRxaP50h3sfO6aJebUCDGQACoeexcelL4roMFRRVgB20yBIu2LxsPh/tdW9I282gNgMOyg3ywg/mg==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-Vj0d0wxJZA+Ztqfb7W+/iu8Uasw6hhKtCdLKXLG/P3kEPIQpqGI4P4YXlROfl7gOCqFIbgsj1HzFIFwQ5s20ug==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-L7599HTI2SLlitlpEP8oAPaJgYssByI4eCwQq2C9eC90otFpm8MRn66PpbKviweAlhinWQ3ZjDD2KIVtx7PaVw==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-UgqSMBLNLR5TzEZ5ZzxR45Nk6VJrammxd60WMSkofyNzd3DQLSNycGWSK5Xg3UTYbXcDFyG8pA/7/y/ztVCa6A==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-qMZ/vweiTHy9syrkkqWFvbT3eLoedvamcUdnnvwyyUNv5FgFXA3KP8td+ATibnlZ0EANW5PYRm8E6MJzEB/72Q==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-QPeD8UA8axQREpgR5UTAfu2mqQmm97oUqahDtNdBcfj3qAnoXzFdQW+aNf/tD2WVXF8Fhmftxoj0eMIT++gX2w==}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-YM/nFfskFJSlHqv59ed6dZlLZqtZQwjRVJ4bBAiWV08Oc+1rSd5lDZcBEx0lGDHfSoH3UziI2pXt2UM33KerPQ==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-9f0hPOxiJDoG/bfNLAFven+Bd4gwz/VzrCIIWc1025LEI4BXO0U5fOCTNDPbbp2ll+UzqKsZ3g61mpBp74gk9A==}
-
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-CpwtMCTJvfvYTFMuiME5IH+8qmDe3yEWzKHe7OOADbGfq7ohxeLaXwQo0q4du3qs0AII3UbLCvb9NF/6q0oTKQ==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==}
engines: {node: '>=8.0.0'}
@@ -3100,9 +3063,6 @@ packages:
resolution: {integrity: sha512-BRs5XUAwiyCDQMsVA9IDvDa7UBR9gAvPHgugOeGng3YN6vJ9JYonyDc0lNczErgtCWtucjR5N7VtaonboD/ezg==}
engines: {node: '>=10.12.0'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-Yc4PDxN3OrxUPiXgU63c+ZRXKGE8YKF2McTciYhUHFtHVB0KMnjeFSU0qpztGhsp4P0uKix4+J2xEpIEDu8oXg==}
-
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
@@ -4144,13 +4104,6 @@ packages:
'@shikijs/[email protected]':
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
- '@simplewebauthn/[email protected]':
- resolution: {integrity: sha512-FNW1oLQpTJyqG5kkDg5ZsotvWgmBaC6jCHR7Ej0qUNep36Wl9tj2eZu7J5rP+uhXgHaLk+QQ3lqcw2vS5MX1IA==}
-
- '@simplewebauthn/[email protected]':
- resolution: {integrity: sha512-HcWLW28yTMGXpwE9VLx9J+N2KEUaELadLrkPEEI9tpI5la70xNEVEsu/C+m3u7uoq4FulLqZQhgBCzR9IZhFpA==}
- engines: {node: '>=20.0.0'}
-
'@sindresorhus/[email protected]':
resolution: {integrity: sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==}
engines: {node: '>=14.16'}
@@ -5342,22 +5295,25 @@ packages:
resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==}
engines: {node: '>=10.0.0'}
- resolution: {integrity: sha512-wq/RRl2aapbHlzvfmWGMkt+Qeav80dATbEU9hAPalLoZqbR3L7ABb/RvtFD8NshWRcXzwLkwAUoVmT3851+wKA==}
+ resolution: {integrity: sha512-YawWmrqva1BhBtJl0CgspuWI+5RrApWI/Q7Gs3KnSyJYOaux3pWOsx2Jb5gCloNdYgTZsgdr3r1mNk5eEyOvCg==}
peerDependencies:
'@lynx-js/react': '*'
- '@sveltejs/kit': '*'
- next: '*'
- react: '*'
- react-dom: '*'
- solid-js: '*'
- svelte: '*'
- vue: '*'
+ '@sveltejs/kit': ^2.0.0
+ '@tanstack/react-start': ^1.0.0
+ next: ^14.0.0 || ^15.0.0
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ solid-js: ^1.0.0
+ svelte: ^4.0.0 || ^5.0.0
+ vue: ^3.0.0
peerDependenciesMeta:
'@lynx-js/react':
optional: true
'@sveltejs/kit':
optional: true
+ '@tanstack/react-start':
+ optional: true
next:
optional: true
react:
@@ -5371,8 +5327,13 @@ packages:
vue:
optional: true
- resolution: {integrity: sha512-sI3GcA1SCVa3H+CDHl8W8qzhlrckwXOTKhqq3OOPXjgn5aTOMIqGY34zLY/pHA6tRRMjTUC3lz5Mi7EbDA24Kw==}
+ resolution: {integrity: sha512-zN4sgcl5sI4MZDx0l3HpJkhKbidPGWyR/9TjCUmNFWl2la5z7Mk7xT5TxqGdN33OaU7fzHj/kzDYz7ck3IXvsQ==}
+ peerDependencies:
+ zod: ^4.0.0
+ peerDependenciesMeta:
+ zod:
+ optional: true
resolution: {integrity: sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==}
@@ -8431,9 +8392,6 @@ packages:
resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==}
-
resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}
engines: {node: '>= 0.4'}
@@ -9199,10 +9157,6 @@ packages:
engines: {node: '>=18.0.0'}
hasBin: true
- resolution: {integrity: sha512-axr3IdNuVIxnaK5XGEUFTu3YmAQ6lllgrvqfEoR16g/HGnYY/6We4oWENtAnzK6/LpJ2ur9PAb80RBt7/U4ugw==}
- engines: {node: '>= 6.0.0'}
-
resolution: {integrity: sha512-ah6YnH2dErojhFooxEzmvsoZQTMImaruZhFPfMKPBq8sb+hALRdvBNLqfc8NWlZq576FkfRZ/MSi4SHvVFT9PQ==}
cpu: [x64]
@@ -9290,9 +9244,6 @@ packages:
peerDependencies:
react: '>=15.0.0'
- resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
-
resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
@@ -9763,6 +9714,9 @@ packages:
resolution: {integrity: sha512-z03fqpTMDF1G02VLKUMt6vyACE7rNWkh3gpXVHgPTw28NPtDFRGvcpTtPwn2kMKtQ0idtYJUTxchytmnqYswcw==}
+ resolution: {integrity: sha512-AvvthqfqrAhNH9dnfmrfKzX5upOdjUVJYFqNSlkmGf64gRaTzlPwz99IHYnVs28qYAybvAlBV+H7pn0saFY4Ig==}
+
resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==}
@@ -11178,26 +11132,22 @@ snapshots:
'@babel/helper-string-parser': 7.27.1
'@babel/helper-validator-identifier': 7.27.1
dependencies:
'@better-auth/utils': 0.3.0
'@better-fetch/fetch': 1.1.18
- better-call: 1.0.19
+ '@standard-schema/spec': 1.0.0
+ better-call: 1.1.3([email protected])
jose: 6.1.0
kysely: 0.28.8
nanostores: 1.0.1
- zod: 4.1.8
+ zod: 4.1.13
dependencies:
'@better-auth/utils': 0.3.0
'@better-fetch/fetch': 1.1.18
- transitivePeerDependencies:
- - better-call
- - jose
- - kysely
- - nanostores
'@better-auth/[email protected]': {}
@@ -11554,8 +11504,6 @@ snapshots:
dependencies:
is-negated-glob: 1.0.0
- '@hexagon/[email protected]': {}
-
dependencies:
hono-rate-limiter: 0.2.3([email protected])
@@ -11902,8 +11850,6 @@ snapshots:
'@leichtgewicht/[email protected]': {}
- '@levischuck/[email protected]': {}
-
dependencies:
'@types/estree': 1.0.7
@@ -12540,94 +12486,12 @@ snapshots:
'@panva/[email protected]': {}
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- '@peculiar/asn1-x509-attr': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-cms': 2.5.0
- '@peculiar/asn1-pkcs8': 2.5.0
- '@peculiar/asn1-rsa': 2.5.0
- '@peculiar/asn1-schema': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-cms': 2.5.0
- '@peculiar/asn1-pfx': 2.5.0
- '@peculiar/asn1-pkcs8': 2.5.0
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- '@peculiar/asn1-x509-attr': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
asn1js: 3.0.6
pvtsutils: 1.3.6
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- asn1js: 3.0.6
- pvtsutils: 1.3.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- asn1js: 3.0.6
- tslib: 2.8.1
-
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.5.0
- asn1js: 3.0.6
- pvtsutils: 1.3.6
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
tslib: 2.8.1
@@ -12640,20 +12504,6 @@ snapshots:
tslib: 2.8.1
webcrypto-core: 1.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-cms': 2.5.0
- '@peculiar/asn1-csr': 2.5.0
- '@peculiar/asn1-ecc': 2.5.0
- '@peculiar/asn1-pkcs9': 2.5.0
- '@peculiar/asn1-rsa': 2.5.0
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- pvtsutils: 1.3.6
- reflect-metadata: 0.2.2
- tslib: 2.8.1
- tsyringe: 4.10.0
-
optional: true
@@ -13718,19 +13568,6 @@ snapshots:
'@shikijs/[email protected]': {}
- '@simplewebauthn/[email protected]': {}
-
- '@simplewebauthn/[email protected]':
- dependencies:
- '@hexagon/base64': 1.1.28
- '@levischuck/tiny-cbor': 0.2.11
- '@peculiar/asn1-android': 2.5.0
- '@peculiar/asn1-ecc': 2.5.0
- '@peculiar/asn1-rsa': 2.5.0
- '@peculiar/asn1-schema': 2.5.0
- '@peculiar/asn1-x509': 2.5.0
- '@peculiar/x509': 1.14.0
-
'@sindresorhus/[email protected]': {}
'@sindresorhus/[email protected]':
@@ -15133,34 +14970,34 @@ snapshots:
dependencies:
'@better-auth/utils': 0.3.0
'@better-fetch/fetch': 1.1.18
'@noble/ciphers': 2.0.1
'@noble/hashes': 2.0.1
- '@simplewebauthn/browser': 13.2.2
- '@simplewebauthn/server': 13.2.2
- better-call: 1.0.19
+ '@standard-schema/spec': 1.0.0
+ better-call: 1.1.3([email protected])
defu: 6.1.4
jose: 6.1.0
kysely: 0.28.8
nanostores: 1.0.1
- zod: 4.1.8
+ zod: 4.1.13
optionalDependencies:
react: 19.1.0
react-dom: 19.1.0([email protected])
dependencies:
'@better-auth/utils': 0.3.0
'@better-fetch/fetch': 1.1.18
rou3: 0.5.1
set-cookie-parser: 2.7.1
- uncrypto: 0.1.3
+ optionalDependencies:
+ zod: 4.1.13
dependencies:
@@ -18862,8 +18699,6 @@ snapshots:
indent-string: 4.0.0
strip-indent: 3.0.0
-
dependencies:
call-bind: 1.0.8
@@ -19884,10 +19719,6 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
- dependencies:
- tslib: 1.14.1
-
optional: true
@@ -19983,8 +19814,6 @@ snapshots:
react: 19.1.0
react-lifecycles-compat: 3.0.4
-
@@ -20520,6 +20349,8 @@ snapshots:
+