Skip to content

Upgrade better-auth to 1.7.18 - #122

Merged
timhanlon merged 2 commits into
devfrom
chore/better-auth-1.7.18
Nov 7, 2026
Merged

timhanlon merged 2 commits into
devfrom
chore/better-auth-1.7.18

Conversation

@timhanlon

Copy link
Copy Markdown
Collaborator

Better Auth 1.7.3+ no longer writes account.issuer, so upgrading SKIT's 1.7.1 dependency alone would break sign-up and account linking against its required issuer column. Upgrade Better Auth and its bundled adapters to 1.7.18, migrate account keys to (providerId, accountId), and update bootstrap to write the current schema.

Migration 0011 creates the new unique index before dropping the issuer index and column, refusing ambiguous existing identities without deleting accounts. Remove the obsolete Vitest 5 peer patch and exception, and update the readiness migration manifest.

Validation: server/web typechecks, server/client production build, 46 focused Cloudflare runtime tests across five files, changed-file lint/format checks, and frozen installation with supply-chain checks passed locally. Migration tests cover existing-account password sign-in, preserved account data, cross-provider IDs, and duplicate-key refusal. CI and live deployment are unverified.

Deployment must coordinate migration 0011 with the new Worker: old 1.7.1 code still writes issuer. Upstream OAuth state changes also require restarting in-flight sign-ins and upgrading servers sharing auth state together. See the upstream upgrade guide.

@timhanlon timhanlon changed the title chore(server): upgrade better-auth to 1.7.18 Upgrade better-auth to 1.7.18 Nov 7, 2026
@timhanlon
timhanlon merged commit 625fd98 into dev Nov 7, 2026
10 checks passed
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.

1 participant