Repository navigation
Update better-auth ecosystem - #16
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
❌ Deploy Preview for jobpilot-eu failed. Why did it fail? →
|
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
2 times, most recently
from
August 14, 2026 22:14
1970eaa to
537d64f
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
5 times, most recently
from
August 21, 2026 19:05
3c9b9ac to
671f443
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
from
August 29, 2026 22:46
671f443 to
f037a30
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
5 times, most recently
from
September 13, 2026 13:43
d3f3740 to
e9f34fb
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
5 times, most recently
from
September 21, 2026 15:16
86ccb40 to
22bfa32
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
2 times, most recently
from
September 27, 2026 18:08
7a4d88a to
a8ca053
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
2 times, most recently
from
October 5, 2026 17:55
a1497b4 to
69ac4f1
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
6 times, most recently
from
October 22, 2026 03:28
bf8f497 to
dea5af4
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
4 times, most recently
from
October 28, 2026 18:27
1b7f36b to
719591c
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
2 times, most recently
from
November 5, 2026 19:31
2bf0355 to
b837515
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
from
November 7, 2026 02:07
b837515 to
bbd6c2f
Compare
Reviewer's GuideConfigurationUpgrade the Better Auth, Convex Better Auth, and Svelte integration dependency versions.
Lock files and vendored codeRefresh the Bun lockfile to record the updated dependency resolutions.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
5 times, most recently
from
November 13, 2026 23:32
4bad33b to
b89b9b1
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
4 times, most recently
from
November 17, 2026 18:36
9022672 to
a1e82e5
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
from
November 21, 2026 22:40
a1e82e5 to
239b387
Compare
renovate
Bot
force-pushed
the
renovate/better-auth-ecosystem
branch
from
November 23, 2026 13:02
239b387 to
b1b23b2
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
^0.10.0→^0.13.0^0.5.0→^0.10.01.4.17→1.7.27Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
convex/better-auth (@convex-dev/better-auth)
v0.13.1Compare Source
Patch Changes
The OAuth Provider and MCP plugins are no longer rejected on Better Auth
1.7.25 and later, with minimal support. Better Auth 1.7.25 is now the minimum.
(#483 by
@erquhart)
Fix email OTP, magic link, password reset, phone number and two-factor OTP
verification failing with a 500 on Better Auth 1.7.22 and later.
(#481 by
@troioi-vn)
v0.13.0Compare Source
(#433). Breaking changes and upgrade steps are in the
upgrade guide
oidcProvider) is no longersupported, and compound unique indexes are rejected
in creation order
auth.api.getToken→getConvexToken,getJwks→getConvexJwks,getOpenIdConfig→getConvexOpenIdConfig(#395)cookie on session switch and expiry, JWT signing algorithm next to the
jwtplugin (#97), credentials redacted from verbose logs
auth.api.verifyOneTimeTokenis renamedverifyCrossDomainOneTimeTokenand its tokens use their own storage prefix,so the plugin no longer collides with Better Auth's
oneTimeTokenpluginverboseno longer turns on the Better Auth adapter'sdebugLogs,which log full database rows including session tokens and password hashes;
verbose logs now hold only the
baseURLand redacted headers. Turn on adapterdebug logs with the new
debugLogsoption oncreateClient()consumeOneandincrementOne, and 1.7's verificationreservations work (#432); 1.7 schema columns (#435);
rateLimit.lastRequestindex (#446)
AuthClientaccepts any client created withconvexClient()(#393,#420)
eq nullmatches unset fields (#399), split pages aren't readtwice,
inon a compound index no longer throws,updateManyupdates a movedrow once, unique checks ignore nulls and pre-existing duplicates, a second
account with the same
providerIdandaccountIdis rejectedConvexBetterAuthProvidercaches tokens per session (#398, #431)session.cookieCacheis turned off with a warning (#18, #73, #434)fixes for issues reported by @helixnebulatech and ported from their fork
v0.12.7Compare Source
(GHSA-9qq3-v9g3-cxhw)
(GHSA-4qvm-r4pr-v3wg)
v0.12.6Compare Source
(GHSA-j8qq-g9pm-v3c2)
(GHSA-pgx2-m66h-x29f)
v0.12.5Compare Source
v0.12.4Compare Source
v0.12.3Compare Source
v0.12.2Compare Source
v0.12.1Compare Source
v0.12.0Compare Source
v0.11.5Compare Source
@mmailaender
v0.11.4Compare Source
v0.11.3Compare Source
v0.11.2Compare Source
v0.11.1Compare Source
v0.11.0Compare Source
mmailaender/convex-better-auth-svelte (@mmailaender/convex-better-auth-svelte)
v0.10.0Compare Source
Minor Changes
2874003: Support SvelteKit 3 (and keep supporting SvelteKit 2). Fixes #47.The package no longer imports
$env/static/public, which SvelteKit 3 deprecates and which fails the build there unless the app declares the variables insrc/env.ts. The Convex URLs are now resolved like this:createSvelteAuthClientandcreateConvexHttpClient: an explicitconvexUrl, otherwise the URL registered withinitConvex()fromconvex-svelte/sveltekit.createSvelteKitHandler: an explicitconvexSiteUrl, otherwise the*.convex.siteURL derived from the*.convex.cloudURL registered withinitConvex().Breaking:
PUBLIC_CONVEX_URLandPUBLIC_CONVEX_SITE_URLare no longer read implicitly. If you relied on that, either callinitConvex(PUBLIC_CONVEX_URL)insrc/hooks.ts(as the SSR setup in the SvelteKit guide already does), or pass the URLs explicitly:Local (
convex dev --local), self-hosted and custom-domain deployments always needconvexSiteUrl, because their site URL can't be derived.@sveltejs/kitis now a declared peer dependency (^2.12.0 || ^3.0.0). 2.12 is the oldest SvelteKit 2 release this was verified against, and the first with$app/state, whichconvex-svelte/sveltekitis starting to use.Patch Changes
e7e7388:getToken(cookies)now finds the Convex JWT cookie when Better Auth uses a customadvanced.cookiePrefix. Pass the prefix as an option, like thecookiePrefixoption of@convex-dev/better-auth'sgetToken:Without it, SSR treated every user as signed out on apps with a custom prefix. The cookie lookup now follows Better Auth's
getSessionCookie(), which also accepts a-separator (better-auth-convex_jwt).03b4283:createSvelteAuthClientno longer forces the Convex client on. In apps withoutinitConvex()it used to passdisabled: falsetosetupConvex, so the client it created during server rendering opened a WebSocket on the server that stayed open as long as the process. convex-svelte now decides on its own: disabled on the server, enabled in the browser.v0.9.0Compare Source
Minor Changes
4bd8a8c: Retry transient query failures in the SvelteKitcreateConvexHttpClientand forward a customfetch, so an SSR load survives a proxy answering 502 for a second during a deploy. Only/api/query,/api/query_tsand/api/query_at_tsare repeated; a query whose function threw (Convex status 560) is returned at once, and mutations and actions are never retried, because a lost response does not prove the write did not commit, andretryTransientQueries: falseopts out.Patch Changes
c8a860b: Stop sendingx-forwarded-hostfromcreateSvelteKitHandlerto the Convex site. Convex's edge can resolve the deployment from that header, so the app's own host there made every/api/auth/*request die as an empty 404. The app host still travels inx-better-auth-forwarded-host, which@convex-dev/better-auth>= 0.12.0 restores before Better Auth handles the request.0b5fec8: Release the Better Auth session subscriptions thatcreateSvelteAuthClientadds when its component is destroyed. With a module-scoped auth client, every server render used to leave a$sessionSignaland asessionlistener on the client, together with the per-render state they capture, for the lifetime of the server process.v0.8.2Compare Source
Patch Changes
0d8d5c4: FixAuthClienttype incompatibility with better-auth 1.6.23. The type is now a minimal structural interface of the members the integration actually uses instead of being derived fromReturnType<typeof createAuthClient<...>>, whose inference collapsed the session type toneveron better-auth 1.6.23 and rejected every concrete auth client. Backwards compatible with older better-auth versions (verified against 1.6.15).v0.8.1Compare Source
Patch Changes
ddbe3d7: Retry transient HTTP errors (5xx, 408, 429) when fetching the Convex token instead of treating them as a sign-out. The Better Auth client resolves with{ data, error }on HTTP error statuses rather than throwing, so a single 502 while the server restarts during a deploy used to be reported as "no token" and flippeduseAuth().isAuthenticatedto false with no recovery until a full reload. Only definitive 4xx responses (401/403) are now treated as an expired or revoked session.v0.8.0Compare Source
Minor Changes
f4c99d1: chore: migrate from @mmailaender/convex-svelte to convex-svelteTo migrate you need to install
convex-svelte@0.13.0and only replace the@mmailaender/convex-svelteimports withconvex-svelteimports in your code.v0.7.4Compare Source
svelteentry so SvelteKit can reliablydetect and bundle the Svelte integration during SSR.
v0.7.3Compare Source
requests to Convex. The SvelteKit handler now forwards
x-better-auth-forwarded-hostandx-better-auth-forwarded-protosoBetter Auth dynamic base URL validation can resolve OAuth callbacks and other
generated URLs against the user-facing app origin instead of the Convex site
URL.
cloning every incoming platform header. This avoids leaking Cloudflare-specific
headers such as
CF-*into the Convex site request while still preservingcookies, auth headers, origin, referrer, and user agent.
v0.7.2Compare Source
getToken(cookies)SSR path that reads the defaultConvex Better Auth JWT cookie names without instantiating
createAuth()inside SvelteKit SSR. This avoids split-runtime failures where Better Auth
config is only valid in the Convex runtime.
getToken(createAuth, cookies)andgetAuthState(createAuth, cookies)SSR overloads in favor ofgetToken(cookies)plusgetAuthState().v0.7.1Compare Source
v0.7.0Compare Source
Minor Changes
feat:
getAuthState()auto-reads token fromwithServerConvexTokencontextWhen
withServerConvexTokenis set up inhooks.server.ts,getAuthState()can now be called with no arguments — the token is read automatically fromAsyncLocalStorage. This eliminates the redundantgetToken()call and removes the need to passcreateAuthandcookies:The old signature
getAuthState(createAuth, cookies)is preserved for backward compatibility.feat:
createConvexHttpClient()auto-reads token fromwithServerConvexTokencontextThe
argsparameter is now optional. When no explicittokenis provided, the client reads fromAsyncLocalStorage:v0.6.2Compare Source
Patch Changes
__Secure-vs non-secure)getTokennow returns the alternative cookie variant when the primary lookup fails, instead of only logging a warning. This fixes SSR treating users as unauthenticated when the app runs behind a reverse proxy where the external URL (HTTPS) differs from the internal origin.getSessionCookie.v0.6.1Compare Source
Patch Changes
getSessionData()returnsnullbecause the Better Auth session atom hasn't loaded yet. The old code skipped the token fetch in this case, causing the Convex client's synchronoussetAuth()to receive no token — resulting in unauthenticated query subscriptions and a flash ofnulldata overridinginitialData.sessionHasBeenAvailableflag: only skip token fetches when the session was previously available and is now cleared (sign-out). During hydration, browser cookies are still valid for the token endpoint.v0.6.0Compare Source
Minor Changes
feat: migrate to
@mmailaender/convex-svelte@mmailaender/convex-svelte@mmailaender/convex-svelteconvex-better-auth-sveltefocused on Better Auth integrationchore: internal architecture cleanup
better-auth/better-auth (better-auth)
v1.7.27Compare Source
Patch Changes
#12809
1ab8e21Thanks @bytaesu! - Validate the request origin on/sign-in/anonymous, the same way the other sign-in endpoints do. A browser request from an origin outsidetrustedOriginsnow gets a 403.#12805
c6fd56dThanks @bytaesu! - FixPOSTrequests sent without a body, such as/sign-outor/revoke-sessions, failing with 415 on Deno, Next.js, Nuxt and other servers that pass an empty stream as the request body.#12655
00f5017Thanks @gustavovalverde! - Tokens signed without a pinned algorithm, such as ID tokens and session JWTs, now prefer a key forjwks.keyPairConfig.alg. Before, if the first signature on an empty key set pinned an algorithm listed injwks.keyPairConfigs, later unpinned tokens reused that key instead of creating one for the primary algorithm. An existing key whose algorithm is not listed injwks.keyPairConfigsis still reused.A deployment already in the affected state, with no key for
jwks.keyPairConfig.algand a newest key for anotherjwks.keyPairConfigsalgorithm, creates a key forjwks.keyPairConfig.algon its next unpinned signature. This includes a deployment whose old primary algorithm moved intojwks.keyPairConfigs. A deployment that already has a key forjwks.keyPairConfig.algkeeps its currentalgandkid. ID tokens,/tokenJWTs, and cookie-cache JWTs of an affected deployment then changealgandkid. Earlier tokens keep verifying bykid, but verifiers that hard-code the old algorithm, or never refetch the JWKS for an unknownkid, must adapt. A customadapter.getJwkskeyring is unchanged: unpinned tokens keep using its newest key, and no key is created for it.#12810
d0a8cabThanks @bytaesu! - Fix the phone number plugin answering/update-userwith a 500 when the request has no body. It now gets the same 400 as without the plugin.#12553
ac7c317Thanks @gustavovalverde! -getTestInstancefrombetter-auth/testnow runs every instance cleanup when one of them fails (several failures surface as anAggregateError), so later instances no longer leave their database or connection open.#12810
d0a8cabThanks @bytaesu! - Fix the username plugin answering/sign-up/emailand/update-userwith a 500 when the request has no body. It now gets the same 400 as without the plugin.Updated dependencies [
5956cb7,559c837]:v1.7.26Compare Source
Patch Changes
#12626
d34e6b1Thanks @gustavovalverde! - A verification lookup that finds an expired value now deletes it, so later lookups no longer return it. Since 1.7.24, an expired value could be returned to repeated lookups for up to a minute.#12734
ae6584cThanks @gustavovalverde! - Social providers accept agetAccountFieldsoption that stores your own values on the provider account. Return values for the fields you declare inaccount.additionalFields, and Better Auth saves them when the account is created, linked, or updated at sign-in. The option does nothing when you leave it unset, and it cannot replace the provider ID, account ID, or tokens.#12626
d34e6b1Thanks @gustavovalverde! - Two-factor sign-in now rejects an expired challenge before it sends an OTP or counts a failed attempt.Updated dependencies [
ddcb9a2,836b13e,54c1b69,cbbfab2,cbbfab2,cbbfab2,ae6584c,de4ccfd]:v1.7.25Compare Source
Patch Changes
#12603
ad07eddThanks @gustavovalverde! - An error thrown from an endpoint no longer drops theAccess-Control-Expose-Headersnames that a hook or the endpoint set earlier. The names from both are kept. Before, the error's value replaced the list, so a browser client on another origin could lose access to headers a hook had exposed.Updated dependencies [
69e14d8,2a8750b,75c0821]:v1.7.24Compare Source
Patch Changes
#12593
b77e783Thanks @gustavovalverde! - Looking up a verification value now deletes expired verification rows at most once a minute per server instance, instead of on every lookup. This removes a delete query from most verification reads. Each flow still checks a value's expiry before it accepts the value.Updated dependencies [
0597f4c]:v1.7.23Compare Source
Patch Changes
#12543
d6e9bbdThanks @gustavovalverde! -getTestInstancefrombetter-auth/testnow gives each test file its own MongoDB database and closes its MongoDB client on cleanup. Before, every MongoDB test instance shared thebetter-authdatabase and dropped it during cleanup, so test files running in parallel deleted each other's data.Updated dependencies [
9dc64fb,cfa73e9,41a2526,c10b35d]:v1.7.22Compare Source
Patch Changes
#12324
80c407bThanks @bytaesu! - FixedReferenceError: window is not definedwhen a client session subscription is cleaned up after a test environment such as happy-dom tears down its globals.#12462
d32a30aThanks @bytaesu! - Fixed session polling never firing when the runtime'snavigatordoes not report connectivity.#12324
80c407bThanks @bytaesu! - Fixed client session refresh listeners piling up on the server during SSR.#12321
946177eThanks @bytaesu! - Revoking your current session withrevokeSessionorrevokeSessions, and deleting your account withdeleteUser({ token }), now expire the session cookies, so a cached session is no longer returned afterwards.#12459
d210421Thanks @bytaesu! -getSessionno longer leaves an expired session in the request context after returningnull.#12331
485567eThanks @bytaesu! - OAuth sign-up rejected by auser.create.beforehook returningfalseno longer logs aTypeError. It still fails withunable_to_create_user.#12334
ec3047dThanks @bytaesu! - FixeddeleteOrganizationclearing the session's active organization when abeforeDeleteOrganizationhook rejected the delete. The active organization is now cleared only after the organization is actually deleted.#12330
d521343Thanks @bytaesu! - FixdeferSessionRefreshrefresh requests failing with 415 in Next.js and Nuxt, where the bodylessPOST /get-sessionreached the handler as an empty stream without aContent-Type.#12451
71052afThanks @bytaesu! - On Cloudflare Workers, consuming a verification value no longer hangs when an earlier request for the same identifier ended mid-query. A superseded code can also no longer be consumed while a newer one is being verified on a database without transactions.#12448
79219b4Thanks @bytaesu! - Schema validation now runs when the auth instance is first used instead of when it is created, so a module-scope instance on Cloudflare Workers no longer logs a validation error on every cold start. On every runtime, a mismatch is no longer logged at startup and is reported by the requests that fail.Updated dependencies [
6536174,262adc0,e9d8e59,79219b4]:v1.7.21Compare Source
Patch Changes
#12126
4739122Thanks @hardikguptaofficialgit! - On Prisma with MongoDB, when your id columns use@db.ObjectId, magic link and email OTP sign-in for users with an unverified email no longer fail with a 500 (Malformed ObjectID). SAML sign-in, DPoP-bound OAuth requests, andprivate_key_jwtclient authentication are fixed the same way, and Sign-In with Ethereum now keeps the email the user supplied instead of a placeholder. Setups with plainStringid columns and other databases are unaffected.#12392
a277020Thanks @gustavovalverde! - Fixed the device approval page showing a valid code as invalid when the same signed-in user looked it up twice at once, such as under React Strict Mode in development.#12052
1c3410aThanks @lakshya-dhariwal! - If you setadvanced.backgroundTasks.handlerand your database adapter runs transactions (the built-in Kysely connection, MongoDB withclient, or Prisma or Drizzle withtransaction: true), email sign-up now keeps the database writes made while sending the verification email or runningonExistingUserSignUp. Before, those writes failed because the sign-up had already been saved. WithemailOTP({ overrideDefaultEmailVerification: true }), the code was never stored, so new users could not verify their email.Whatever adapter or background handler you use, a sign-up verification email now goes out after the new user is saved, and
onExistingUserSignUp, when a duplicate sign-up triggers it, runs after the request's database work completes. IfsendVerificationEmailthrows, the sign-up succeeds and the error is logged; before, the sign-up failed. To reject a sign-up, use adatabaseHooks.user.create.beforehook. IfonExistingUserSignUpthrows, the error is logged and the request still returns the generic response.#12179
9105261Thanks @ghazy2001! - Generic OAuth providers configured withdiscoveryHeadersnow send those headers when fetching the provider's signing keys from ajwks_urion the same origin asdiscoveryUrl. Before, the keys request went out without them. Providers whose key endpoint requires the headers rejected it, so every ID token failed verification and sign-in failed. Ajwks_urion another origin still gets no headers.With
discoveryHeadersset, the discovery request now follows redirects only within the origin ofdiscoveryUrl, so the headers no longer reach another host. If yourdiscoveryUrlredirects to another origin, discovery now fails and Better Auth logs an error. SetdiscoveryUrlto the final URL. Providers withoutdiscoveryHeadersare unaffected.#12401
c3a94c5Thanks @gustavovalverde! - Generic OAuth providers configured withauthorizationHeadersnow send those headers when refreshing an access token, not only when exchanging the authorization code. Before, a provider whose token endpoint requires one of those headers accepted the sign-in but rejected every refresh. Providers withoutauthorizationHeadersare unaffected.refreshAccessTokenandrefreshAccessTokenRequestfrom@better-auth/core/oauth2accept an optionalheadersinput for prConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.