chore(auth): upgrade better-auth 1.3.12 → 1.6.11#4766
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryHigh Risk Overview Auth integration: Behavior-preserving config: Email: OTP/subject types extended with Database: Migration Lockfile: Reviewed by Cursor Bugbot for commit 6d360b4. Configure here. |
Greptile SummaryUpgrades
Confidence Score: 5/5Safe to merge — all changes are additive API renames, behavioral opt-outs explicitly documented in the 1.6 migration guide, and a nullable-only DB migration. Every deprecated API is correctly renamed, the plugin ordering fix resolves a real cookie-propagation bug from 1.6.10, all email type unions are fully closed with change-email, and the migration is purely additive. The PR author reports 60/60 auth route tests passing and a clean type-check run, consistent with the diff. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "chore(auth): address Greptile review — b..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 6d360b4. Configure here.
Summary
better-auth,@better-auth/sso,@better-auth/stripefrom 1.3.12 → 1.6.11onEmailVerification→afterEmailVerification,forgetPassword→requestPasswordReset,organizationCreation.afterCreate→organizationHooks.afterCreateOrganizationnextCookies()to end of plugins array (1.6.10 fix — earlier position droppedSet-Cookieheaders from later plugins'hooks.after)requireLocalEmailVerifieddefault to preserve OAuth-linking behaviorrequireEmailVerificationOnInvitationonisEmailVerificationEnabledso self-hosted invite flow still works without SMTPfreshAge: 0(1.6 recalculates freshness fromcreatedAt, not last activity)getCheckoutSessionParamsline_itemsoverride (1.6.10 strips it; pre-checkout seat picker already exists)pagesconfig (never a valid option) and unusedsignIn/signUpre-exports0216_*adds 6 nullable columns for new better-auth Stripe + JWKS fieldsType of Change
Testing
type-checkandcheck:api-validationclean/api/auth/get-session,/api/auth/jwks,/api/auth/forget-password, OIDC discovery — all 200ADD COLUMNonly — no destructive opsFollow-up (separate PR)
oidcProvider→@better-auth/oauth-providermigration — requires data migration of live OAuth client rows + one-wayclient_secrethashing. Plan documented in.context/better-auth-upgrade/OAUTH-PROVIDER-MIGRATION.md.Checklist