A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
chore(web): upgrade better-auth to 1.7.10 (#3201)
Mohamed Bassemd9c72988a0cf
diff --git a/apps/web/app/api/auth/[...all]/route.tsx b/apps/web/app/api/auth/[...all]/route.tsxindex cbcecba9..9982da48 100644--- a/apps/web/app/api/auth/[...all]/route.tsx+++ b/apps/web/app/api/auth/[...all]/route.tsx@@ -1,11 +1,6 @@import { auth } from "@/server/auth";function handler(request: Request) {- const url = new URL(request.url);- if (url.pathname === "/api/auth/callback/custom") {- url.pathname = "/api/auth/oauth2/callback/custom";- request = new Request(url, request);- }return auth.handler(request);}diff --git a/apps/web/lib/auth/client.ts b/apps/web/lib/auth/client.tsindex 55589eb4..cb0e7d5f 100644--- a/apps/web/lib/auth/client.ts+++ b/apps/web/lib/auth/client.ts@@ -5,10 +5,7 @@ import type { auth } from "@/server/auth";import { createContext, createElement, useContext } from "react";import { TURNSTILE_TOKEN_HEADER } from "@/lib/auth/constants";import { createAuthClient } from "better-auth/react";-import {- genericOAuthClient,- inferAdditionalFields,-} from "better-auth/client/plugins";+import { inferAdditionalFields } from "better-auth/client/plugins";export interface Session {user: {@@ -22,7 +19,7 @@ export interface Session {}const authClient = createAuthClient({- plugins: [genericOAuthClient(), inferAdditionalFields<typeof auth>()],+ plugins: [inferAdditionalFields<typeof auth>()],});type ClientSessionData = NonNullable<@@ -106,8 +103,8 @@ export async function signIn(}return toAuthResult(- await authClient.signIn.oauth2({- providerId: provider,+ await authClient.signIn.social({+ provider,callbackURL: options.callbackUrl ?? "/",errorCallbackURL: "/signin",}),diff --git a/apps/web/package.json b/apps/web/package.jsonindex 24264978..d8fc08e1 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -66,7 +66,7 @@"@trpc/server": "^11.9.0","@trpc/tanstack-react-query": "^11.9.0","ai": "^6.0.286",- "better-auth": "1.6.25",+ "better-auth": "1.7.10","better-sqlite3": "^13.0.3","cheerio": "^1.2.0","class-variance-authority": "^0.7.0",diff --git a/apps/web/server/auth.test.ts b/apps/web/server/auth.test.tsindex 86539dd9..10c9c4f3 100644--- a/apps/web/server/auth.test.ts+++ b/apps/web/server/auth.test.ts@@ -547,10 +547,10 @@ describe("oauth token endpoint authentication", () => {});const start = await auth.handler(- new Request(`${BASE_URL}/api/auth/sign-in/oauth2`, {+ new Request(`${BASE_URL}/api/auth/sign-in/social`, {method: "POST",headers: { "content-type": "application/json", origin: BASE_URL },- body: JSON.stringify({ providerId: "custom", callbackURL: "/" }),+ body: JSON.stringify({ provider: "custom", callbackURL: "/" }),}),);const { url } = z.object({ url: z.string() }).parse(await start.json());@@ -561,7 +561,7 @@ describe("oauth token endpoint authentication", () => {.join("; ");const callback = await auth.handler(new Request(- `${BASE_URL}/api/auth/oauth2/callback/custom?code=the-code&state=${state}`,+ `${BASE_URL}/api/auth/callback/custom?code=the-code&state=${state}`,{ headers: { cookie } },),);@@ -603,4 +603,17 @@ describe("oauth token endpoint authentication", () => {expect(form.get("client_id")).toBe("karakeep");expect(form.get("client_secret")).toBe("a+b/c=%41 d");});++ test("public clients authenticate with PKCE only", async () => {+ const { callback, tokenRequests } = await signInWithOAuth({+ OAUTH_CLIENT_SECRET: "",+ });+ expect(callback.headers.get("location")).toBe("/");+ const [request] = tokenRequests;+ expect(request.headers.get("authorization")).toBeNull();+ const form = new URLSearchParams(await request.text());+ expect(form.get("client_id")).toBe("karakeep");+ expect(form.has("client_secret")).toBe(false);+ expect(form.get("code_verifier")).toBeTruthy();+ });});diff --git a/apps/web/server/auth.ts b/apps/web/server/auth.tsindex a19197de..13fd71e5 100644--- a/apps/web/server/auth.ts+++ b/apps/web/server/auth.ts@@ -63,8 +63,8 @@ const ALLOWED_PATHS = new Set(["/request-password-reset","/reset-password","/change-password",- "/sign-in/oauth2",- "/oauth2/callback/:providerId",+ "/sign-in/social",+ "/callback/:id",]);const PASSWORD_PATHS = new Set([@@ -84,8 +84,8 @@ const READ_ONLY_PATHS = new Set(["/ok", "/error", "/get-session"]);const SESSION_PATHS = new Set(["/sign-in/email","/sign-out",- "/sign-in/oauth2",- "/oauth2/callback/:providerId",+ "/sign-in/social",+ "/callback/:id",]);const RATE_LIMITS: Record<string, RateLimitConfig> = {@@ -342,44 +342,32 @@ function buildVerificationUrl(email: string, token: string, url: string) {return verificationUrl.toString();}-// RFC 6749 section 2.3.1 requires the client credentials to be form-urlencoded-// before they're put in the Basic authorization header, as next-auth did.-// better-auth puts them there as is, which breaks secrets containing characters-// like "+" or "%" on providers that decode them (e.g. Keycloak and Dex). With-// client_secret_post, the secret is sent in the (already encoded) form body.-function encodeClientSecret(- secret: string | undefined,- authentication: "basic" | "post",-) {- if (secret === undefined || authentication === "post") {- return secret;- }- return encodeURIComponent(secret).replace(/%20/g, "+");-}-function createOAuthConfig(): GenericOAuthConfig | null {const oauth = serverConfig.auth.oauth;if (!oauth.wellKnownUrl || !oauth.clientId) {return null;}- const authentication =- oauth.tokenEndpointAuthMethod === "client_secret_post" ? "post" : "basic";return {providerId: CUSTOM_OAUTH_PROVIDER_ID,discoveryUrl: oauth.wellKnownUrl,clientId: oauth.clientId,- clientSecret: encodeClientSecret(oauth.clientSecret, authentication),+ clientSecret: oauth.clientSecret,scopes: oauth.scope.split(/\s+/).filter(Boolean),- // Keep the callback url of the next-auth days so that existing OAuth- // client configurations keep working. See the auth route handler.+ // The callback url of the next-auth days, so that existing OAuth client+ // configurations keep working.redirectURI: `${serverConfig.publicUrl}/api/auth/callback/${CUSTOM_OAUTH_PROVIDER_ID}`,pkce: true,- authentication,+ // Without a secret, it's a public client that relies on PKCE alone.+ tokenEndpointAuth: oauth.clientSecret+ ? { method: oauth.tokenEndpointAuthMethod }+ : { method: "none" },disableSignUp: serverConfig.auth.disableSignups,- mapProfileToUser(profile: Record<string, unknown>) {+ // Existing accounts were linked by this id, so keep deriving it the same+ // way rather than relying on better-auth's default (`sub` only).+ accountSubject: ({ profile }) => String(profile.sub ?? profile.id ?? ""),+ mapProfileToUser(profile) {return {- id: String(profile.sub ?? profile.id ?? ""),name: normalizeSafeDisplayName(typeof profile.name === "string" ? profile.name : null,),@@ -555,7 +543,7 @@ export const auth = betterAuth({logEvent({"event.name": "user.login","user.id": session.userId,- "auth.provider": context?.path.startsWith("/oauth2/")+ "auth.provider": context?.path.startsWith("/callback/")? "oauth": "credentials",});diff --git a/docs/docs/03-configuration/01-environment-variables.md b/docs/docs/03-configuration/01-environment-variables.mdindex c217c25c..f9323023 100644--- a/docs/docs/03-configuration/01-environment-variables.md+++ b/docs/docs/03-configuration/01-environment-variables.md@@ -73,10 +73,10 @@ When setting up OAuth, the allowed redirect URLs configured at the provider shou| EMAIL_VERIFICATION_REQUIRED | No | false | Whether email verification is required during user signup. If enabled, users must verify their email address before they can use their account. If you enable this, you must configure SMTP settings. || OAUTH_AUTO_REDIRECT | No | false | If enabled and password authentication is disabled, automatically redirect to the OAuth provider instead of showing the login page. Useful when OAuth is the only authentication method available. || OAUTH_WELLKNOWN_URL | No | Not set | The "wellknown Url" for openid-configuration as provided by the OAuth provider |-| OAUTH_CLIENT_SECRET | No | Not set | The "Client Secret" as provided by the OAuth provider |+| OAUTH_CLIENT_SECRET | No | Not set | The "Client Secret" as provided by the OAuth provider. Leave it unset for a public client, which authenticates with PKCE only. || OAUTH_CLIENT_ID | No | Not set | The "Client ID" as provided by the OAuth provider || OAUTH_SCOPE | No | "openid email profile" | "Full list of scopes to request (space delimited)" |-| OAUTH_TOKEN_ENDPOINT_AUTH_METHOD | No | client_secret_basic | How Karakeep authenticates to the provider's token endpoint. Either `client_secret_basic` or `client_secret_post`. Set it to `client_secret_post` if your provider doesn't support `client_secret_basic`. |+| OAUTH_TOKEN_ENDPOINT_AUTH_METHOD | No | client_secret_basic | How Karakeep authenticates to the provider's token endpoint. Either `client_secret_basic` or `client_secret_post`. Set it to `client_secret_post` if your provider doesn't support `client_secret_basic`. Ignored when `OAUTH_CLIENT_SECRET` isn't set. || OAUTH_PROVIDER_NAME | No | "Custom Provider" | The name of your provider. Will be shown on the signup page as "Sign in with `<name>`" || OAUTH_ALLOW_DANGEROUS_EMAIL_ACCOUNT_LINKING | No | false | Whether existing accounts in karakeep stored in the database should automatically be linked with your OAuth account. Only enable it if you trust the OAuth provider! |diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6efd6ad7..2e36bfc0 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -717,8 +717,8 @@ importers:specifier: ^6.0.286version: 6.0.286([email protected])better-auth:- specifier: 1.6.25- version: 1.6.25(@opentelemetry/[email protected])([email protected])([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))+ specifier: 1.7.10+ version: 1.7.10(@opentelemetry/[email protected])([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))better-sqlite3:specifier: ^13.0.3version: 13.0.3@@ -3140,64 +3140,61 @@ packages:resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==}engines: {node: '>=6.9.0'}- '@better-auth/[email protected]':- resolution: {integrity: sha512-lMTlhtwyK4NpY9kPF+2rQCRKYpg136d3gM2xl8esxT1PjJx5Nh5YwZvxcYCIjDuO759sx6TCloJTuwcZGG6ZBw==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-c5vxtnk7UxWe/iF/X5sKSgmPcN5n6biuwJBs2dMkceMwvMWBHLosue6h/vmvKns9SYKbkBNWsurFe7yIbv13dQ==}peerDependencies:- '@better-auth/utils': 0.4.2- '@better-fetch/fetch': 1.3.1- '@cloudflare/workers-types': '>=4'+ '@better-auth/utils': ^0.4.2 || ^0.5.0+ '@better-fetch/fetch': 1.3.2'@opentelemetry/api': ^1.9.0- better-call: 1.3.7+ better-call: 1.4.2jose: ^6.1.0kysely: ^0.28.5 || ^0.29.0nanostores: ^1.0.1peerDependenciesMeta:- '@cloudflare/workers-types':- optional: true'@opentelemetry/api':optional: true- '@better-auth/[email protected]':- resolution: {integrity: sha512-ru/DeKjFPQUVeKkxF/ScazmPqIY7lwfkAV5Yt4j24wmn1Y8vFwoiPRnHgXUeZqBs10+nubaRwEqLF39CP6EhRw==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-Uc/Eh9cnvorIWA6J97Hv8zjR8sCVUP6G7M3xHJGTD9qJXC69zoY4ULmNGA73AmGJB1q+VEYs2cRMtJ6fR6HP6g==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2- drizzle-orm: ^0.45.2+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0+ drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0peerDependenciesMeta:drizzle-orm:optional: true- '@better-auth/[email protected]':- resolution: {integrity: sha512-zxiePhtN1YClS1irKYPVwWfN6kYp+QoYlz1hdQUOj8hXyo2aE/ny4RNAb6v332b0+U6Vu88EhYITRPdmvCo6uA==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-ZWWc6h5lgcwQMTcqMLNWw+jTEMFfrqJHD+VamiCUdaAxZzVAkjLZzVA2r0vZ5w7xnTY9vWS7wuNVqAKNLRTlYQ==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0kysely: ^0.28.17 || ^0.29.0peerDependenciesMeta:kysely:optional: true- '@better-auth/[email protected]':- resolution: {integrity: sha512-GhEzTumc8yfTz+OZ6pMg06BA49xob49x1bX+1mEl/FStDJoSF+6mTfI5M2ytFxaiN89336/aUjkW8u+qRyLexw==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-3Di7y8BK5I2pCdpRaJ2ggkVliO/Swr6a/J+y9RFdwkbxhEMU1o9WD9IwoG3LFH8dvFF3kVo+GilsZsVNlYD+sw==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0- '@better-auth/[email protected]':- resolution: {integrity: sha512-ZtMmjcOdXR2Ziqx5y8ptTOaNpe0snNfALbBUPXJsgeyeRkDJDYzyLZ8MpuvNBTNllNeIFDbiXWAK5k+pEBZrUQ==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-7z48PlXtlSKGvdOXfVmbjZE1vRmYyOQqHiPbeLpw+NvAPSTI9N4r7OO47u2MebA3q25e3GoGEwk5BAEE07u+PQ==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0mongodb: ^6.0.0 || ^7.0.0peerDependenciesMeta:mongodb:optional: true- '@better-auth/[email protected]':- resolution: {integrity: sha512-ym7B6Iqcry+/4aQnYpFwqP/GBIiXvjrm/5B6+0qmx8mkTY/apHFTpHuGzUYYNf4vPTtzF3eYY2+s2GOsomKaRg==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-hNlhn0Kcq/O76SehvqznFsjqfEMdM2m2ctazU/BLv+jT8+hGvvxCInXZi6x86/xpAyDTgU7t7KsK50r6mdNR1g==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0'@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0prisma: ^5.0.0 || ^6.0.0 || ^7.0.0peerDependenciesMeta:@@ -3206,18 +3203,15 @@ packages:prisma:optional: true- '@better-auth/[email protected]':- resolution: {integrity: sha512-2ZfC9lp7tU6Jw/q2Lz/bKfQqGMdMwc/IQDTYdBhvtGi24qInYVnhp2ZCW57hHM9j+fq1ULOtxgg6M3T1LEaihw==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-1OamUtbGRaYHB0tRjKK3Jv6hzI6mZMv3pujkg8k7tr3idQuToMoVXsWAD9oFbUTmOLeix58n+grzsl7r0fR0Sw==}peerDependencies:- '@better-auth/core': ^1.6.25- '@better-auth/utils': 0.4.2- '@better-fetch/fetch': 1.3.1-- '@better-auth/[email protected]':- resolution: {integrity: sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A==}+ '@better-auth/core': ^1.7.10+ '@better-auth/utils': ^0.4.2 || ^0.5.0+ '@better-fetch/fetch': 1.3.2- '@better-fetch/[email protected]':- resolution: {integrity: sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==}+ '@better-auth/[email protected]':+ resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==}'@better-fetch/[email protected]':resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==}@@ -8538,17 +8532,16 @@ packages:resolution: {integrity: sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==}- resolution: {integrity: sha512-fvoq+oCO+FF5fpP3XfU7znRyGFpHB77UG2EyxsKNy+Cak7Q5pELu+auvvDveQbWQxcoKugZ7jYQQPFQLpUTGOw==}+ resolution: {integrity: sha512-Paf0X8cHKQc8jCgM3vl4AoxRicWdNf0zw8Aggn1q6aNSWCDDxSZCb6rkXa/O9cPc8idjVPK0rV/eHPHAbs07ZA==}peerDependencies:'@lynx-js/react': '*''@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0- '@sveltejs/kit': ^2.0.0+ '@sveltejs/kit': ^2.0.0 || ^3.0.0'@tanstack/react-start': ^1.0.0'@tanstack/solid-start': ^1.0.0- better-sqlite3: ^12.0.0- drizzle-kit: '>=0.31.4'- drizzle-orm: ^0.45.2+ drizzle-kit: '>=0.31.4 || >=1.0.0-beta.1'+ drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0mongodb: ^6.0.0 || ^7.0.0mysql2: ^3.0.0next: ^14.0.0 || ^15.0.0 || ^16.0.0@@ -8558,7 +8551,7 @@ packages:react-dom: 19.2.3solid-js: ^1.0.0svelte: ^4.0.0 || ^5.0.0- vitest: ^2.0.0 || ^3.0.0 || ^4.0.0+ vitest: ^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0vue: ^3.0.0peerDependenciesMeta:'@lynx-js/react':@@ -8571,8 +8564,6 @@ packages:optional: true'@tanstack/solid-start':optional: true- better-sqlite3:- optional: truedrizzle-kit:optional: truedrizzle-orm:@@ -8600,8 +8591,8 @@ packages:vue:optional: true- resolution: {integrity: sha512-Al51/hjp2SSp6CRTa3F2ptcx4yQVS1xWKoY6jcVXqNYOap6mHFP2jUBn5EwIL4iIed1/Sq4hlQ+Umm6EflZG+w==}+ resolution: {integrity: sha512-lOmFCTG1KcE60YWxoff2Wx0Fv7v7drP/fQTDYnhJUCdkA7V6QWXdLPUiMpOQCq7Fd0Ts3AkrRwD23xoiootlGA==}peerDependencies:zod: ^4.0.0peerDependenciesMeta:@@ -14932,8 +14923,8 @@ packages:engines: {node: '>=10.0.0'}hasBin: true- resolution: {integrity: sha512-iFE4hLDuloSWcD7mjdCDhx2bKcIsYbtOTpfH5MHHLSKMOUyjqQXTeZVa289uuwEGEKFoE/BAPbhaU4B774nceg==}+ resolution: {integrity: sha512-3SOzvaAg8rkHrXtRjpCvCvbyO5to9oOO27Z/XqHEYXfMRVSw/qMIVdmaOk9W2lcRLtR6dlqTjo9hDeJk70QBYQ==}resolution: {integrity: sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ==}@@ -18941,13 +18932,13 @@ snapshots:'@babel/helper-string-parser': 7.29.7'@babel/helper-validator-identifier': 7.29.7- '@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':+ '@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':dependencies:- '@better-auth/utils': 0.4.2- '@better-fetch/fetch': 1.3.1+ '@better-auth/utils': 0.5.0+ '@better-fetch/fetch': 1.3.2'@opentelemetry/semantic-conventions': 1.43.0'@standard-schema/spec': 1.1.0- better-call: 1.3.7([email protected])+ better-call: 1.4.2([email protected])jose: 6.2.12kysely: 0.29.6nanostores: 1.5.4@@ -18955,47 +18946,45 @@ snapshots:optionalDependencies:'@opentelemetry/api': 1.9.0- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0optionalDependencies:drizzle-orm: 0.45.4(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected])':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0optionalDependencies:kysely: 0.29.6- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])':dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/utils': 0.4.2- '@better-fetch/fetch': 1.3.1+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/utils': 0.5.0+ '@better-fetch/fetch': 1.3.2- '@better-auth/[email protected]':+ '@better-auth/[email protected]':dependencies:'@noble/hashes': 2.4.0- '@better-fetch/[email protected]': {}-'@better-fetch/[email protected]': {}'@borewit/[email protected]': {}@@ -23224,7 +23213,9 @@ snapshots:metro-runtime: 0.84.6transitivePeerDependencies:- '@babel/core'+ - bufferutil- supports-color+ - utf-8-validate'@react-native/[email protected]': {}@@ -25383,27 +25374,26 @@ snapshots:- [email protected](@opentelemetry/[email protected])([email protected])([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))):- dependencies:- '@better-auth/core': 1.6.25(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/drizzle-adapter': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))- '@better-auth/kysely-adapter': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected])- '@better-auth/memory-adapter': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])- '@better-auth/mongo-adapter': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])- '@better-auth/prisma-adapter': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])- '@better-auth/telemetry': 1.6.25(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])- '@better-auth/utils': 0.4.2- '@better-fetch/fetch': 1.3.1+ [email protected](@opentelemetry/[email protected])([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))):+ dependencies:+ '@better-auth/core': 1.7.10(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])+ '@better-auth/drizzle-adapter': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]))+ '@better-auth/kysely-adapter': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected])+ '@better-auth/memory-adapter': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])+ '@better-auth/mongo-adapter': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])+ '@better-auth/prisma-adapter': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])+ '@better-auth/telemetry': 1.7.10(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])+ '@better-auth/utils': 0.5.0+ '@better-fetch/fetch': 1.3.2'@noble/ciphers': 2.4.0'@noble/hashes': 2.4.0- better-call: 1.3.7([email protected])+ better-call: 1.4.2([email protected])defu: 6.1.7jose: 6.2.12kysely: 0.29.6nanostores: 1.5.4zod: 4.6.5optionalDependencies:- better-sqlite3: 13.0.3drizzle-kit: 0.31.10drizzle-orm: 0.45.4(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])next: 16.4.1(@babel/[email protected])(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])@@ -25411,14 +25401,13 @@ snapshots:react-dom: 19.2.3([email protected])vitest: 4.1.11(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))transitivePeerDependencies:- - '@cloudflare/workers-types'- '@opentelemetry/api'dependencies:- '@better-auth/utils': 0.4.2+ '@better-auth/utils': 0.5.0'@better-fetch/fetch': 1.3.2- rou3: 0.7.12+ rou3: 0.9.2set-cookie-parser: 3.1.2optionalDependencies:zod: 4.6.5@@ -32881,7 +32870,7 @@ snapshots:optionalDependencies:fsevents: 2.3.3- [email protected]: {}+ [email protected]: {}dependencies: