Skip to content

Update better-auth ecosystem - #16

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/better-auth-ecosystem
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/better-auth-ecosystem

Conversation

@renovate

@renovate renovate Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@convex-dev/better-auth ^0.10.0 → ^0.13.0 age confidence
@mmailaender/convex-better-auth-svelte (source) ^0.5.0 → ^0.10.0 age confidence
better-auth (source) 1.4.17 → 1.7.27 age confidence

Warning

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.1

Compare 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.0

Compare Source

  • breaking: support Better Auth 1.7 (minimum 1.7.16); 1.6 is no longer supported
    (#​433). Breaking changes and upgrade steps are in the
    upgrade guide
  • breaking: acting as an OpenID provider (oidcProvider) is no longer
    supported, and compound unique indexes are rejected
  • breaking: sorting on a field without an index fails instead of returning rows
    in creation order
  • breaking: Convex plugin endpoint keys renamed: auth.api.getToken →
    getConvexToken, getJwks → getConvexJwks, getOpenIdConfig →
    getConvexOpenIdConfig (#​395)
  • fix: security hardening beyond 0.12.7: forwarded origin checks, the Convex JWT
    cookie on session switch and expiry, JWT signing algorithm next to the jwt
    plugin (#​97), credentials redacted from verbose logs
  • breaking: cross-domain plugin: auth.api.verifyOneTimeToken is renamed
    verifyCrossDomainOneTimeToken and its tokens use their own storage prefix,
    so the plugin no longer collides with Better Auth's oneTimeToken plugin
  • breaking: verbose no longer turns on the Better Auth adapter's debugLogs,
    which log full database rows including session tokens and password hashes;
    verbose logs now hold only the baseURL and redacted headers. Turn on adapter
    debug logs with the new debugLogs option on createClient()
  • fix: native consumeOne and incrementOne, and 1.7's verification
    reservations work (#​432); 1.7 schema columns (#​435); rateLimit.lastRequest
    index (#​446)
  • fix: AuthClient accepts any client created with convexClient() (#​393,
    #​420)
  • fix: adapter: eq null matches unset fields (#​399), split pages aren't read
    twice, in on a compound index no longer throws, updateMany updates a moved
    row once, unique checks ignore nulls and pre-existing duplicates, a second
    account with the same providerId and accountId is rejected
  • fix: ConvexBetterAuthProvider caches tokens per session (#​398, #​431)
  • fix: session.cookieCache is turned off with a warning (#​18, #​73, #​434)
  • Includes fixes ported from #​430 by @​sshkeda and #​425 by @​suhailopensource, and
    fixes for issues reported by @​helixnebulatech and ported from their fork

v0.12.7

Compare Source

  • fix: registerRoutes replaces an untrusted request origin with CONVEX_SITE_URL
    (GHSA-9qq3-v9g3-cxhw)
  • fix: the Convex JWT cookie is only issued for established sessions
    (GHSA-4qvm-r4pr-v3wg)

v0.12.6

Compare Source

v0.12.5

Compare Source

  • fix unbounded count/findMany pagination looping forever past 200 rows (#​394)

v0.12.4

Compare Source

v0.12.3

Compare Source

  • update to better-auth 1.6.15, minimum 1.6.11 (#​388)

v0.12.2

Compare Source

  • fix: strip hop-by-hop headers in framework proxy handlers (#​360) @​CipherSight
  • fix: pass through trigger results from create/update (#​358)

v0.12.1

Compare Source

v0.12.0

Compare Source

v0.11.5

Compare Source

v0.11.4

Compare Source

  • fix: accept BaseURLConfig type for baseURL option (#​310)

v0.11.3

Compare Source

  • Lazy route registration for reduced memory usage (#​302)

v0.11.2

Compare Source

  • fix: return dates as numbers from customTransformOutput (#​298)
  • fix(adapter): match composite index fields by real names (#​297)

v0.11.1

Compare Source

  • chore: add missing generated types

v0.11.0

Compare Source

mmailaender/convex-better-auth-svelte (@​mmailaender/convex-better-auth-svelte)

v0.10.0

Compare 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 in src/env.ts. The Convex URLs are now resolved like this:

    • createSvelteAuthClient and createConvexHttpClient: an explicit convexUrl, otherwise the URL registered with initConvex() from convex-svelte/sveltekit.
    • createSvelteKitHandler: an explicit convexSiteUrl, otherwise the *.convex.site URL derived from the *.convex.cloud URL registered with initConvex().

    Breaking: PUBLIC_CONVEX_URL and PUBLIC_CONVEX_SITE_URL are no longer read implicitly. If you relied on that, either call initConvex(PUBLIC_CONVEX_URL) in src/hooks.ts (as the SSR setup in the SvelteKit guide already does), or pass the URLs explicitly:

    // src/routes/api/auth/[...all]/+server.ts
    import { PUBLIC_CONVEX_SITE_URL } from '$app/env/public'; // SvelteKit 2: '$env/static/public'
    export const { GET, POST } = createSvelteKitHandler({ convexSiteUrl: PUBLIC_CONVEX_SITE_URL });

    Local (convex dev --local), self-hosted and custom-domain deployments always need convexSiteUrl, because their site URL can't be derived.

    @sveltejs/kit is 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, which convex-svelte/sveltekit is starting to use.

Patch Changes
  • e7e7388: getToken(cookies) now finds the Convex JWT cookie when Better Auth uses a custom advanced.cookiePrefix. Pass the prefix as an option, like the cookiePrefix option of @convex-dev/better-auth's getToken:

    // src/hooks.server.ts
    const token = getToken(event.cookies, { cookiePrefix: 'myapp' });

    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: createSvelteAuthClient no longer forces the Convex client on. In apps without initConvex() it used to pass disabled: false to setupConvex, 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.0

Compare Source

Minor Changes
  • 4bd8a8c: Retry transient query failures in the SvelteKit createConvexHttpClient and forward a custom fetch, so an SSR load survives a proxy answering 502 for a second during a deploy. Only /api/query, /api/query_ts and /api/query_at_ts are 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, and retryTransientQueries: false opts out.
Patch Changes
  • c8a860b: Stop sending x-forwarded-host from createSvelteKitHandler to 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 in x-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 that createSvelteAuthClient adds when its component is destroyed. With a module-scoped auth client, every server render used to leave a $sessionSignal and a session listener on the client, together with the per-render state they capture, for the lifetime of the server process.

v0.8.2

Compare Source

Patch Changes
  • 0d8d5c4: Fix AuthClient type 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 from ReturnType<typeof createAuthClient<...>>, whose inference collapsed the session type to never on 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.1

Compare 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 flipped useAuth().isAuthenticated to 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.0

Compare Source

Minor Changes
  • f4c99d1: chore: migrate from @​mmailaender/convex-svelte to convex-svelte

    To migrate you need to install convex-svelte@0.13.0 and only replace the @mmailaender/convex-svelte imports with convex-svelte imports in your code.

v0.7.4

Compare Source

  • fix: declare the package's top-level svelte entry so SvelteKit can reliably
    detect and bundle the Svelte integration during SSR.

v0.7.3

Compare Source

  • fix: preserve the original SvelteKit request host/protocol when proxying auth
    requests to Convex. The SvelteKit handler now forwards
    x-better-auth-forwarded-host and x-better-auth-forwarded-proto so
    Better 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.
  • fix: only forward the auth-relevant request headers to Convex instead of
    cloning every incoming platform header. This avoids leaking Cloudflare-specific
    headers such as CF-* into the Convex site request while still preserving
    cookies, auth headers, origin, referrer, and user agent.

v0.7.2

Compare Source

  • fix: add a cookie-only getToken(cookies) SSR path that reads the default
    Convex 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.
  • docs: deprecate the legacy getToken(createAuth, cookies) and
    getAuthState(createAuth, cookies) SSR overloads in favor of
    getToken(cookies) plus getAuthState().

v0.7.1

Compare Source

  • fix: await settling before fetchAccessToken to prevent auth flash on tab refocus

v0.7.0

Compare Source

Minor Changes
  • feat: getAuthState() auto-reads token from withServerConvexToken context

    When withServerConvexToken is set up in hooks.server.ts, getAuthState() can now be called with no arguments — the token is read automatically from AsyncLocalStorage. This eliminates the redundant getToken() call and removes the need to pass createAuth and cookies:

    // Before (still supported)
    const authState = await getAuthState(createAuth, cookies);
    
    // After (recommended)
    const authState = getAuthState(); // synchronous, no await needed

    The old signature getAuthState(createAuth, cookies) is preserved for backward compatibility.

  • feat: createConvexHttpClient() auto-reads token from withServerConvexToken context

    The args parameter is now optional. When no explicit token is provided, the client reads from AsyncLocalStorage:

    // Before
    const client = createConvexHttpClient({ token: locals.token });
    
    // After (recommended)
    const client = createConvexHttpClient();

v0.6.2

Compare Source

Patch Changes
  • fix: resolve auth cookie behind reverse proxy when cookie name prefix differs (__Secure- vs non-secure)
    • getToken now 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.
    • Follows the same fallback pattern used by Better Auth's own getSessionCookie.

v0.6.1

Compare Source

Patch Changes
  • fix: allow token fetch during SSR hydration before session atom settles
    • During initial hydration, getSessionData() returns null because the Better Auth session atom hasn't loaded yet. The old code skipped the token fetch in this case, causing the Convex client's synchronous setAuth() to receive no token — resulting in unauthenticated query subscriptions and a flash of null data overriding initialData.
    • Track sessionHasBeenAvailable flag: 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.0

Compare Source

Minor Changes
  • feat: migrate to @mmailaender/convex-svelte

    • switch peer dependency to @mmailaender/convex-svelte
    • refactor to use primitives now provided by the extended Convex Svelte client
    • move shared primitives out of this package into @mmailaender/convex-svelte
    • keep convex-better-auth-svelte focused on Better Auth integration
  • chore: internal architecture cleanup

better-auth/better-auth (better-auth)

v1.7.27

Compare Source

Patch Changes
  • #​12809 1ab8e21 Thanks @​bytaesu! - Validate the request origin on /sign-in/anonymous, the same way the other sign-in endpoints do. A browser request from an origin outside trustedOrigins now gets a 403.

  • #​12805 c6fd56d Thanks @​bytaesu! - Fix POST requests sent without a body, such as /sign-out or /revoke-sessions, failing with 415 on Deno, Next.js, Nuxt and other servers that pass an empty stream as the request body.

  • #​12655 00f5017 Thanks @​gustavovalverde! - Tokens signed without a pinned algorithm, such as ID tokens and session JWTs, now prefer a key for jwks.keyPairConfig.alg. Before, if the first signature on an empty key set pinned an algorithm listed in jwks.keyPairConfigs, later unpinned tokens reused that key instead of creating one for the primary algorithm. An existing key whose algorithm is not listed in jwks.keyPairConfigs is still reused.

    A deployment already in the affected state, with no key for jwks.keyPairConfig.alg and a newest key for another jwks.keyPairConfigs algorithm, creates a key for jwks.keyPairConfig.alg on its next unpinned signature. This includes a deployment whose old primary algorithm moved into jwks.keyPairConfigs. A deployment that already has a key for jwks.keyPairConfig.alg keeps its current alg and kid. ID tokens, /token JWTs, and cookie-cache JWTs of an affected deployment then change alg and kid. Earlier tokens keep verifying by kid, but verifiers that hard-code the old algorithm, or never refetch the JWKS for an unknown kid, must adapt. A custom adapter.getJwks keyring is unchanged: unpinned tokens keep using its newest key, and no key is created for it.

  • #​12810 d0a8cab Thanks @​bytaesu! - Fix the phone number plugin answering /update-user with a 500 when the request has no body. It now gets the same 400 as without the plugin.

  • #​12553 ac7c317 Thanks @​gustavovalverde! - getTestInstance from better-auth/test now runs every instance cleanup when one of them fails (several failures surface as an AggregateError), so later instances no longer leave their database or connection open.

  • #​12810 d0a8cab Thanks @​bytaesu! - Fix the username plugin answering /sign-up/email and /update-user with a 500 when the request has no body. It now gets the same 400 as without the plugin.

  • Updated dependencies [5956cb7, 559c837]:

v1.7.26

Compare Source

Patch Changes

v1.7.25

Compare Source

Patch Changes

v1.7.24

Compare Source

Patch Changes

v1.7.23

Compare Source

Patch Changes

v1.7.22

Compare Source

Patch Changes

v1.7.21

Compare Source

Patch Changes
  • #​12126 4739122 Thanks @​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, and private_key_jwt client authentication are fixed the same way, and Sign-In with Ethereum now keeps the email the user supplied instead of a placeholder. Setups with plain String id columns and other databases are unaffected.

  • #​12392 a277020 Thanks @​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 1c3410a Thanks @​lakshya-dhariwal! - If you set advanced.backgroundTasks.handler and your database adapter runs transactions (the built-in Kysely connection, MongoDB with client, or Prisma or Drizzle with transaction: true), email sign-up now keeps the database writes made while sending the verification email or running onExistingUserSignUp. Before, those writes failed because the sign-up had already been saved. With emailOTP({ 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. If sendVerificationEmail throws, the sign-up succeeds and the error is logged; before, the sign-up failed. To reject a sign-up, use a databaseHooks.user.create.before hook. If onExistingUserSignUp throws, the error is logged and the request still returns the generic response.

  • #​12179 9105261 Thanks @​ghazy2001! - Generic OAuth providers configured with discoveryHeaders now send those headers when fetching the provider's signing keys from a jwks_uri on the same origin as discoveryUrl. 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. A jwks_uri on another origin still gets no headers.

    With discoveryHeaders set, the discovery request now follows redirects only within the origin of discoveryUrl, so the headers no longer reach another host. If your discoveryUrl redirects to another origin, discovery now fails and Better Auth logs an error. Set discoveryUrl to the final URL. Providers without discoveryHeaders are unaffected.

  • #​12401 c3a94c5 Thanks @​gustavovalverde! - Generic OAuth providers configured with authorizationHeaders now 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 without authorizationHeaders are unaffected.

    refreshAccessToken and refreshAccessTokenRequest from @better-auth/core/oauth2 accept an optional headers input for pr

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel

vercel Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
jobflow Ignored Ignored Oct 20, 2026 11:58am UTC

@netlify

netlify Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for jobpilot-eu failed. Why did it fail? →

Name Link
🔨 Latest commit b1b23b2
🔍 Latest deploy log https://app.netlify.com/projects/jobpilot-eu/deploys/6b04397bf0e4dc5b18ed4f7f

@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 2 times, most recently from 1970eaa to 537d64f Compare August 14, 2026 22:14
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 5 times, most recently from 3c9b9ac to 671f443 Compare August 21, 2026 19:05
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch from 671f443 to f037a30 Compare August 29, 2026 22:46
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 5 times, most recently from d3f3740 to e9f34fb Compare September 13, 2026 13:43
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 5 times, most recently from 86ccb40 to 22bfa32 Compare September 21, 2026 15:16
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 2 times, most recently from 7a4d88a to a8ca053 Compare September 27, 2026 18:08
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 2 times, most recently from a1497b4 to 69ac4f1 Compare October 5, 2026 17:55
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 6 times, most recently from bf8f497 to dea5af4 Compare October 22, 2026 03:28
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 4 times, most recently from 1b7f36b to 719591c Compare October 28, 2026 18:27
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 2 times, most recently from 2bf0355 to b837515 Compare November 5, 2026 19:31
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch from b837515 to bbd6c2f Compare November 7, 2026 02:07
@sourcery-ai

sourcery-ai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Upgrade the Better Auth, Convex Better Auth, and Svelte integration dependency versions.

  • package.json L42, L53, L69

Lock files and vendored code

Refresh the Bun lockfile to record the updated dependency resolutions.

  • bun.lock L3113-3132, L3139-3159, L3719-3741 (+29 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 5 times, most recently from 4bad33b to b89b9b1 Compare November 13, 2026 23:32
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch 4 times, most recently from 9022672 to a1e82e5 Compare November 17, 2026 18:36
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch from a1e82e5 to 239b387 Compare November 21, 2026 22:40
@renovate
renovate Bot force-pushed the renovate/better-auth-ecosystem branch from 239b387 to b1b23b2 Compare November 23, 2026 13:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants