[PR #4854] [MERGED] v1.3.15 #22519

Closed
opened 2026-04-15 21:06:12 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4854
Author: @himself65
Created: 9/23/2025
Status: Merged
Merged: 9/23/2025
Merged by: @himself65

Base: v1.3.x-latestHead: v1.3.15-staging


📝 Commits (10+)

📊 Changes

123 files changed (+1596 additions, -1938 deletions)

View changed files

📝 .github/workflows/ci.yml (+1 -1)
📝 .github/workflows/e2e.yml (+4 -3)
📝 .github/workflows/preview.yml (+1 -1)
📝 .github/workflows/release.yml (+2 -2)
📝 docs/components/endpoint.tsx (+0 -2)
📝 docs/components/nav-mobile.tsx (+1 -2)
📝 docs/content/docs/plugins/admin.mdx (+23 -0)
📝 docs/content/docs/plugins/jwt.mdx (+34 -2)
📝 package.json (+1 -1)
📝 packages/better-auth/package.json (+1 -5)
📝 packages/better-auth/src/adapters/adapter-factory/index.ts (+24 -22)
📝 packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts (+5 -5)
📝 packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts (+5 -5)
📝 packages/better-auth/src/adapters/kysely-adapter/test/normal/node-sqlite-dialect.test.ts (+1 -1)
📝 packages/better-auth/src/adapters/kysely-adapter/test/number-id/adapter.kysely.number-id.test.ts (+19 -20)
📝 packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts (+12 -12)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+2 -2)
📝 packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts (+9 -9)
📝 packages/better-auth/src/adapters/test.ts (+2 -2)
📝 packages/better-auth/src/api/check-endpoint-conflicts.test.ts (+1 -1)

...and 80 more files

📄 Description

Summary by cubic

Prepares v1.3.15 by migrating endpoint schemas to Zod v3 and tightening TypeScript safety, plus fixes OAuth proxy callbacks and stabilizes CI. Docs add JWT client token retrieval and the missing admin update-user endpoint.

  • Bug Fixes

    • OAuth Proxy now compares callback origins using productionURL; added tests.
    • getSession return type includes null for unauthenticated states.
    • CI: pinned actions/setup-node to a commit SHA and fixed Playwright install (pnpm exec, proper e2e working directory).
    • Safer parsing and indexing across code (cookies, headers, adapters, plugins) to prevent runtime errors.
  • Refactors

    • Switched endpoint schemas to Zod v3 describe() and cleaned up metadata (no API shape changes).
    • Enabled TypeScript noUncheckedIndexedAccess; added non-null checks and minor test updates.
    • Monorepo tsconfig cleanup and script tweaks (lint:fix uses --unsafe; typecheck uses project config).
    • Docs: added admin update-user API and jwtClient usage for easy token retrieval; minor UI component cleanups.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4854 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/23/2025 **Status:** ✅ Merged **Merged:** 9/23/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `v1.3.x-latest` ← **Head:** `v1.3.15-staging` --- ### 📝 Commits (10+) - [`b1fabc1`](https://github.com/better-auth/better-auth/commit/b1fabc1fe73d710fbd846e11dc65588fa07544a5) chore(deps): pin actions/setup-node action to 49933ea (#4806) - [`dc6415c`](https://github.com/better-auth/better-auth/commit/dc6415c7212f2d0246d9f47c8cc8f40b314aa23a) chore: use tsconfig monorepo setup (#4826) - [`25226f9`](https://github.com/better-auth/better-auth/commit/25226f91a4be33300537f63b3373f1774dac9c60) chore(docs): lint fix (#4827) - [`ff43652`](https://github.com/better-auth/better-auth/commit/ff4365261398892a181325f7580343712b007d3a) docs(jwt): add jwtClient plugin method for token retrieval (#4824) - [`636e534`](https://github.com/better-auth/better-auth/commit/636e534072c4bd95fd6da752b42d3ec6422eb1c9) fix (oauth-proxy): use of productionURL in for callback comparison (#4825) - [`710785e`](https://github.com/better-auth/better-auth/commit/710785e04f819cbc8493c88285d167e831cc5a10) fix(types): include null in getSession return type (#4812) - [`fd4b147`](https://github.com/better-auth/better-auth/commit/fd4b14705ee75f1faa4c2afdec49af210da77fa6) ci: fix playwright install (#4849) - [`93a766f`](https://github.com/better-auth/better-auth/commit/93a766f22cd1bce3252596f3fd55caf55b41a220) docs(admin): added missing `updateUser` api (#4846) - [`be0b63c`](https://github.com/better-auth/better-auth/commit/be0b63ceea08c8516987d4b528230e5471928b2b) chore: set `noUncheckedIndexedAccess` to true (#4828) - [`202f55d`](https://github.com/better-auth/better-auth/commit/202f55dca419e2ebc8048f2202e224cf64f8c853) chore: use zod v3 syntax (#4851) ### 📊 Changes **123 files changed** (+1596 additions, -1938 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+1 -1) 📝 `.github/workflows/e2e.yml` (+4 -3) 📝 `.github/workflows/preview.yml` (+1 -1) 📝 `.github/workflows/release.yml` (+2 -2) 📝 `docs/components/endpoint.tsx` (+0 -2) 📝 `docs/components/nav-mobile.tsx` (+1 -2) 📝 `docs/content/docs/plugins/admin.mdx` (+23 -0) 📝 `docs/content/docs/plugins/jwt.mdx` (+34 -2) 📝 `package.json` (+1 -1) 📝 `packages/better-auth/package.json` (+1 -5) 📝 `packages/better-auth/src/adapters/adapter-factory/index.ts` (+24 -22) 📝 `packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts` (+5 -5) 📝 `packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts` (+5 -5) 📝 `packages/better-auth/src/adapters/kysely-adapter/test/normal/node-sqlite-dialect.test.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/kysely-adapter/test/number-id/adapter.kysely.number-id.test.ts` (+19 -20) 📝 `packages/better-auth/src/adapters/memory-adapter/memory-adapter.ts` (+12 -12) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+2 -2) 📝 `packages/better-auth/src/adapters/prisma-adapter/prisma-adapter.ts` (+9 -9) 📝 `packages/better-auth/src/adapters/test.ts` (+2 -2) 📝 `packages/better-auth/src/api/check-endpoint-conflicts.test.ts` (+1 -1) _...and 80 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Prepares v1.3.15 by migrating endpoint schemas to Zod v3 and tightening TypeScript safety, plus fixes OAuth proxy callbacks and stabilizes CI. Docs add JWT client token retrieval and the missing admin update-user endpoint. - **Bug Fixes** - OAuth Proxy now compares callback origins using productionURL; added tests. - getSession return type includes null for unauthenticated states. - CI: pinned actions/setup-node to a commit SHA and fixed Playwright install (pnpm exec, proper e2e working directory). - Safer parsing and indexing across code (cookies, headers, adapters, plugins) to prevent runtime errors. - **Refactors** - Switched endpoint schemas to Zod v3 describe() and cleaned up metadata (no API shape changes). - Enabled TypeScript noUncheckedIndexedAccess; added non-null checks and minor test updates. - Monorepo tsconfig cleanup and script tweaks (lint:fix uses --unsafe; typecheck uses project config). - Docs: added admin update-user API and jwtClient usage for easy token retrieval; minor UI component cleanups. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:06:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22519