fix(auth): upgrade Better Auth to 1.7.2 - #192
Conversation
|
@romanbsd is attempting to deploy a commit to the Comp AI - PoC Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
ab0906e to
184589b
Compare
There was a problem hiding this comment.
All reported issues were addressed across 18 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
184589b to
0f42139
Compare
|
Review fixes are consolidated in 0f42139. Public Slack sign-in remains available without a CRM session. |
0f42139 to
bca062f
Compare
|
All review fixes are consolidated in bca062f. Better Auth remains upgraded to exact version 1.7.2. |
There was a problem hiding this comment.
All reported issues were addressed across 18 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
bca062f to
c37621d
Compare
|
The null-safe Microsoft migration guard is included in c37621d. All 57 migrations pass from a clean database. |
There was a problem hiding this comment.
All reported issues were addressed across 18 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
c37621d to
3d95612
Compare
There was a problem hiding this comment.
All reported issues were addressed across 18 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
Why
CompCRM uses Better Auth 1.6.25 while the current runtime packages are 1.7.2.
Better Auth 1.7.2 changes social-link routes, client methods, hook data, and token refresh inputs.
Summary
Validation
bun run check-typesbun run lintbun run lint:slopgit diff --checkSummary by cubic
Upgrades Better Auth from 1.6.25 to 1.7.2 and adapts auth flows to its breaking changes.
Changes
better-auth,@better-auth/api-key,@better-auth/sso, and theauthCLI package to 1.7.2.linkSocialclient method./api/auth/callback/slack; existing Slack apps must update their redirect URL before this ships./link-socialstarts and/callback/:idcallbacks whose OAuth state identifies a linking transaction, so public Slack sign-in passes through.needs-reconnectoutcome when no account is found.20260830221000_better_auth_account_identityto backfillissuerand Microsoftoididentities; it aborts if any Microsoft row lacks a trusted mapping and removes accounts whose SSO provider was deleted.Written for commit 0a14223. Summary will update on new commits.