Commit Graph
4292 Commits
Author SHA1 Message Date
better-release[bot]andGitHub d3bde2d21f chore: release v1.7.0-beta.2 (#9207) 2026-04-22 17:23:06 +01:00
Gustavo Valverde 888b1fc90e test(generic-oauth): align GET-callback-without-state test with rewritten plugin contract
Caught during the main-to-next sync in #9312. The test was imported from main
in #9293, which targeted the legacy /oauth2/callback/:providerId endpoint that
the generic-oauth rewrite (#9069) removed on next; callbacks now flow through
the core /callback/:id route. That route preserves the security contract (GET
without state redirects to the error page, never crashes) via an early state
guard that emits `state_not_found` instead of `please_restart_the_process`.
2026-04-22 16:19:42 +01:00
Gustavo Valverde 827aeede1b chore: sync dependabot bumps from main
Catches the electron (38.8.6 -> 41.2.2) and @hono/node-server (1.19.11 -> 1.19.14) dep bumps that landed on main after the previous sync commit. Auto-merged without conflicts.
2026-04-22 15:52:52 +01:00
Gustavo Valverde eb3cd10d50 chore: resolve main-to-next sync conflicts
- keep next package versions at 1.7.0-beta.1
- keep both changelog streams by inserting the stable 1.6.5, 1.6.6, and 1.6.7 sections below the 1.7.0-beta entries
- keep the cimd and dash deps on demo/nextjs (next-only); regenerate pnpm-lock.yaml
- resolve TODO(sync-from-main-9226) in oauth-provider authorize.ts: findRegisteredRedirectUri now uses isLoopbackIP from @better-auth/core/utils/host to cover the full 127.0.0.0/8 range per RFC 8252 §7.3
- drop the unused saml import that main's #9262 added to sso/src/routes/sso.ts; next already migrated to saml-pipeline
2026-04-22 14:54:27 +01:00
TaesuandGitHub b828c54698 chore(deps-dev): bump electron from 38.8.6 to 41.2.2 (#9310) 2026-04-22 12:19:47 +00:00
better-release[bot]andGitHub f8076d141a chore: release v1.6.7 (#9289) 2026-04-22 12:36:30 +01:00
ec20325173 fix(passkey): verify passkey authentication isnt returning the user (#5209)
Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
2026-04-22 10:10:48 +00:00
4e0e6e1fd3 fix(oauth-provider): userinfo Authorization from ctx.headers for auth.api (#9244)
Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
2026-04-22 09:20:54 +00:00
Gustavo ValverdeandGitHub 4f373eed8a feat(social-providers): accept array of Client IDs for ID token audience (#9292) 2026-04-22 09:02:56 +00:00
RayandGitHub 4a180f0b0c fix(core): serve noop ./instrumentation on browser and edge conditions (#9281) 2026-04-22 08:44:00 +00:00
e1b1cfc7a2 fix(oauth2): guard against undefined body when parsing state (#9293)
Co-authored-by: Menachem Hornbacher <mhornbacher@kiddom.co>
2026-04-22 08:23:13 +00:00
d053a4583e fix(phone-number): call callbackOnVerification when updatePhoneNumber is enabled (#4894)
Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
2026-04-22 08:11:42 +00:00
Gustavo ValverdeandGitHub 5c6de4ed26 fix(oauth-provider)!: return RFC-compliant error envelopes from validation failures (#9277) 2026-04-22 06:48:34 +00:00
307196a405 fix(api): preserve response headers when APIError is thrown (#9211)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 06:47:16 +00:00
better-release[bot]andGitHub 0290077760 chore: release v1.6.6 (#9222) 2026-04-21 17:42:18 +01:00
9ea7eb1eab fix(cookies): preserve partitioned attribute on set-cookie round-trip (#9235)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-04-21 16:11:29 +00:00
Jonathan SaminesandGitHub fe5f36c7e3 chore(sso): fix samlify ESM/CJS loading compat issue (#9262) 2026-04-21 16:06:04 +00:00
TaesuandGitHub b5742f9d08 feat(core): add mapConcurrent bounded-concurrency utility (#9227) 2026-04-21 15:31:08 +00:00
MaxwellandGitHub 4debfb600f fix(custom-session): use coerced boolean for disableRefresh query param validation (#9214) 2026-04-21 10:22:32 +00:00
MaxwellandGitHub ab4c10fbc0 fix(organization): infer team additional fields correctly (#9266) 2026-04-21 08:16:39 +00:00
954b664f4f feat(org): allow passing userId and organizationId to listUserTeams API (#8977)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-04-21 08:15:16 +00:00
4677601429 fix(expo): read cached session data from SecureStore on app startup (#8953)
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
2026-04-21 06:49:49 +00:00
Gustavo ValverdeandGitHub e64ff720fb fix: unify host classification and close SSRF gaps across packages (#9226) 2026-04-17 23:25:25 +00:00
a844c7dd08 chore(core): update @opentelemetry/api dep declaration to be optional (#9111)
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
2026-04-17 14:26:40 +00:00
MaxwellGitHubTaesuCopilotcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>Taesu
3728518d1c fix(api-key): run secondary-storage api-key executions in parallel (#9187)
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
2026-04-17 12:43:30 +00:00
TaesuandGitHub a61083e023 fix(phone-number): allow removing phone number via updateUser (#9219) 2026-04-17 04:19:26 +00:00
better-release[bot]andGitHub c8a91f4167 chore: release v1.6.5 (#9209) 2026-04-16 11:05:30 +01:00
5b900a2b43 Merge commit from fork
* Add tests reproducing GHSA-xr8f-h2gw-9xh6

* Fix GHSA-xr8f-h2gw-9xh6

* Move clientPrivilege assertion to shared helper

* chore: add oauth-provider changeset for GHSA-xr8f-h2gw-9xh6

---------

Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
2026-04-16 10:52:33 +01:00
938dd80e2d docs(test-utils): clarify production usage (#9119)
Signed-off-by: Gautam Manchandani <manchandanigautam@gmail.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-04-16 01:20:34 +00:00
RayandGitHub 05386271ca fix(client): trigger $sessionSignal for session-rotating endpoints (#9087) 2026-04-15 15:27:48 +00:00
Gustavo Valverde 225976c7d2 chore: main to next conflict resolution
Resolve the main to next sync discrepancies after the v1.6.4 release.

Conflict resolution:
- keep next package versions at 1.7.0-beta.1
- keep both changelog streams by inserting the stable 1.6.4 sections below the 1.7.0-beta entries
- restore the next pre-release accumulator changesets that the stable release deleted on main
2026-04-15 15:40:35 +01:00
better-release[bot]andGitHub 9ec849ff71 chore: release v1.6.4 (#9175) 2026-04-15 13:00:42 +01:00
39d6af2a39 chore(adapters): require patched drizzle-orm and kysely peer versions (#9165)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-04-15 11:37:50 +00:00
Gustavo ValverdeandGitHub ba03fb59f4 chore(deps): bump electron and next devDependencies to patched versions (#9166) 2026-04-15 11:24:20 +00:00
Gustavo ValverdeandGitHub 9aed910499 fix(two-factor): revert enforcement broadening from #9122 (#9205) 2026-04-15 10:59:53 +00:00
Gustavo ValverdeandGitHub d2a1ec091f chore(cimd): add to fixed version group and align at 1.7.0-beta.1 (#9200) 2026-04-15 07:53:04 +01:00
acbd6ef69f fix: honor forceAllowId UUIDs on postgres adapters (#9068)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-04-14 13:05:11 +00:00
better-release[bot]andGitHub d8dfa515e2 chore: release v1.7.0-beta.1 (#9120) 2026-04-14 12:29:23 +01:00
Gustavo Valverde 834841fbc9 chore: sync v1.6.3 release into next
Brings main's `chore: release v1.6.3 (#9081)` commit into next after the
stable release. Conflict resolution:

- `packages/*/package.json`: keep next's `1.7.0-beta.0` (per the release
  bot's standard rule: next is always ahead of main in version).
- `packages/*/CHANGELOG.md`: keep both version entries side-by-side. Next's
  `1.7.0-beta.0` section stays on top; main's new `1.6.3` section slots in
  below. Each entry describes its own branch's release.
- `.changeset/*.md`: restore the 14 changesets git auto-deleted. Next is in
  pre-release mode (`.changeset/pre.json` `mode: "pre"`), so changesets
  accumulate across beta cuts and are only consumed on `exit-pre`. Main's
  release deleted them from main; next must keep them for its own pre-release
  accumulator.
2026-04-14 12:10:23 +01:00
better-release[bot]andGitHub 6f17bb3ebd chore: release v1.6.3 (#9081) 2026-04-14 12:04:31 +01:00
Gustavo Valverde b7850f90a4 fix: address merge follow-ups from PR #9172 review
- packages/oauth-provider/src/types/zod.ts: make `state` optional in
  `verificationValueSchema`. Main's PR #9118 hardened authorization code
  validation with a required `state`, but CIMD (next, PR #9159) doesn't send
  state in test flows. Per OAuth 2.0 §4.1.1 state is RECOMMENDED, not
  REQUIRED. Fixes CIMD token exchange (`401 !== 200`) in ci test and smoke.

- docs/content/docs/plugins/sso.mdx: replace remaining `/sso/saml2/callback/`
  references with `/sso/saml2/sp/acs/` to match the endpoint rename from
  next's PR #9117. The merge took main verbatim here, regressing docs that
  next had already updated.
2026-04-14 11:54:29 +01:00
Gustavo Valverde 3fbab44068 chore: sync main to next
Resolves conflicts in PR #9115 which the release bot cannot auto-merge.

Conflict resolutions:
- .github/workflows/release.yml: take main's hardened grep fallback (92256a2d0)
- docs/content/docs/plugins/sso.mdx: take main's named-exports refactor verbatim (#9144)
- packages/oauth-provider/src/token.ts: keep next's at_hash sequencing (#9079),
  add main's customTokenResponseFields spread and credential helper rename (#9118)
- packages/oauth-provider/src/token.test.ts: keep both new describe blocks
  (at_hash in id tokens from next, customTokenResponseFields from main)

Semantic fixes on auto-merged files where git silently dropped main's changes
around next's discriminated-response refactor:
- two-factor/index.ts: restore skipVerificationOnEnable handling in the totp
  enablement path
- two-factor/types.ts: restore the skipVerificationOnEnable type field
- two-factor/two-factor.test.ts: narrow the discriminated enable response via
  method === "totp" guard
2026-04-14 11:30:13 +01:00
9a6d4759cd fix(client): prevent isMounted race condition causing many rps (#9078)
Co-authored-by: Taesu <bytaesu@gmail.com>
Co-authored-by: Gustavo Valverde <g.valverde02@gmail.com>
2026-04-14 09:36:59 +00:00
Gustavo ValverdeandGitHub 390a03190c fix(stripe): prevent prototype pollution via user-supplied metadata (#9164) 2026-04-14 08:05:31 +00:00
Gustavo ValverdeandGitHub 5142e9cec5 fix(auth): harden dynamic baseURL resolution (#9131) 2026-04-14 08:01:13 +00:00
Gustavo ValverdeandGitHub 92256a2d0d chore: minor review followups on recent main commits (#9163) 2026-04-14 07:22:10 +00:00
TaesuandGitHub 513dabb132 fix: resolve dynamic baseURL for direct auth.api calls (#9113) 2026-04-14 06:16:53 +00:00
cd8313ba00 feat(cimd): add Client ID Metadata Document plugin (#9159)
Co-authored-by: Dylan Vanmali <dylanvanmali@yahoo.com>
2026-04-13 20:52:34 +00:00
Gustavo ValverdeandGitHub c7d22539ec refactor(generic-oauth)!: rewrite as first-class social provider with RFC compliance (#9069) 2026-04-13 12:02:16 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
504ea253ac chore(deps-dev): bump @sveltejs/kit from 2.53.3 to 2.57.1 (#9109)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-12 08:24:12 +00:00