Repository navigation
Upgrade Better Auth to 1.7.27 - #243
Merged
Merged
Conversation
Better Auth 1.7.27 resumes a pending OAuth authorization after an OIDC SSO sign-in (`/sign-in/sso`), so that part of the OAuth provider patch is removed. The device approval, device-code reference and Microsoft email-domain proof patches are rebuilt for 1.7.27; their behavior is unchanged. Since 1.7.16, resending an invitation that grants the owner role requires the owner role. The members page already offered resend for owner invitations only to owners; the API and CLI now match it.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 411dcf6 | Nov 20 2026, 01:19 PM |
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.
What changes
better-auth,@better-auth/core,@better-auth/oauth-providerand@better-auth/ssomove from 1.7.12 to 1.7.27 in the control plane, the auth proxy and the Gmail, GitHub and OneDrive templates.better-callmoves to 1.4.6, the version Better Auth 1.7.27 requires./sign-in/ssohunk is removed. 1.7.27 carries the pending authorization through company SSO itself (fix(oauth-provider): resume the authorization after an OIDC SSO sign-in better-auth/better-auth#12727). The device-code hunks that keep the approving session, its consent reference and its authentication time are rebuilt against 1.7.27's chunk layout without behavior changes.better-auth): applies unchanged. 1.7.x still approves device codes without the guarded write; upstream fixes this only in 1.8.@better-auth/core): rebuilt on top of 1.7.16'sparseStringBooleanhandling ofemail_verified. An explicitemail_verifieddecision still wins; otherwisexms_edov: trueor a matching verified address proves the email.403. The integration test now checks both the refusal and an owner's resend.Why
The releases since 1.7.12 include fixes that apply to this deployment:
resources(#12395), verification value consumption (#12451), schema validation (#11716).email_verifiedclaims from Microsoft Entra ID being read as verified, and built-in social providers no longer following redirects during token exchange (#12106).redirect_uriorresourcevalidation no longer consume the authorization or device code (#12499).Tests
pnpm checkpasses.pnpm exec vitest run: 1139 passed.runtime-errors.integration.test.tsneeds a built Node server and fails the same way onmainwithout one.wrangler deploy --dry-runbundles andRUN_CLOUDFLARE_TESTS=1 pnpm exec vitest run apps/control-plane/tests/cloudflare: 248 passed, including app sign-in resuming after Microsoft sign-in and company SSO, and device authorization with token refresh across independent Worker requests. The control-plane bundle contains a single copy ofbetter-auth.

Confidence Score: 5/5 
The PR appears safe to merge, with no new actionable findings or outstanding previous findings.Summary
Upgrades Better Auth from 1.7.12 to 1.7.27 across the control plane, auth proxy, and connector templates.
No new actionable issues were found. Tests were not rerun; dependencies are not installed in this checkout.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Approving session] --> B[Capture company reference and sign-in time] B --> C[Approve pending device code] C --> D[Exchange device code] D --> E[Issue scoped tokens] E --> F[Refresh with the same reference]Reviews (2) · Last reviewed commit: "Cover string email_verified claims in th..." · Reviewed by Greptile