765 Commits
Author SHA1 Message Date
Alex Yang 56fd706088 chore: release v1.4.22 2026-03-16 13:23:10 -07:00
Alex Yang 73ca92ee8c fix(cli): warn when old @better-auth/cli is used with better-auth v1.5.x+
Closes #8622

When the old @better-auth/cli detects that better-auth >= 1.5.0 is
installed, it now prints a warning directing users to the new `auth` CLI
(`npx auth@latest`). This prevents unexpected behavior from the old CLI
generating incorrect schemas for v1.5.x projects.

Uses `createRequire` from the user's CWD to resolve better-auth's
package.json and `semver.gte` for version comparison. Uses `chalk` for
terminal colors (consistent with the rest of the CLI). Silently skips
the check if better-auth is not installed.
2026-03-16 13:22:20 -07:00
Alex Yang 3dda602b0c chore: release v1.4.21 2026-03-02 02:33:29 +09:00
Alex Yang 4e7cf203c6 fix: update workspace dependency ranges to workspace:* 2026-03-02 02:22:32 +09:00
Alex Yang 2c1620dbdd chore: release v1.4.20 2026-02-28 09:52:23 +09:00
Alex Yang 1892ca3b00 chore: release v1.4.19 2026-02-23 23:41:20 +08:00
Alex Yang e804ef1a6e fix(cli): add .env.local to dotenv (#7831)
(cherry picked from commit 3b2b9834c5)
(cherry picked from commit 42a3bbaa5cb1bb7c50480b379357d0a10156b931)
2026-02-18 22:31:37 +08:00
Alex Yang d99d3ceae6 chore: release v1.4.18 2026-01-28 17:07:44 -08:00
jyc.devandAlex Yang 9cb459c9f1 fix: check jsconfig.json in getPathAliases (#7650) 2026-01-28 17:06:03 -08:00
Alex Yang d0ec239d14 chore: enable sourcemap for packages (#7622) 2026-01-28 17:06:03 -08:00
Paola Estefanía de CamposandAlex Yang 79621ac0b7 fix(cli): update MCP URL from Chonkie to Inkeep (#7585) 2026-01-28 17:06:03 -08:00
Paola Estefanía de CamposandAlex Yang d6d627089d fix(mcp): remove local mpc (#7574) 2026-01-28 17:06:03 -08:00
TaesuandAlex Yang 94706cc193 chore: remove unused CHANGELOG.md files (#7559) 2026-01-28 17:06:03 -08:00
Bereket EngidaandAlex Yang 27af866f26 fix(cli): use inkeep remote mcp url (#7543) 2026-01-28 17:06:03 -08:00
Alex Yang bcbeeee23c chore: release v1.4.17 2026-01-20 19:29:15 -08:00
Alex YangandGitHub f4440274e0 chore: bump zod (#7507) 2026-01-20 15:33:00 -08:00
Alex Yang 4625dcf784 chore: release v1.4.16 2026-01-19 22:41:09 -08:00
d3e6468bb0 chore: fix opencode tag and MCP command structure (#7451)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2026-01-19 22:40:42 -08:00
Alex Yang bcb4d24cbc chore: release v1.4.15 2026-01-17 17:39:08 -08:00
Alex Yang 1d649c09a4 chore: release v1.4.14 2026-01-16 20:23:14 -08:00
MaxandAlex Yang 2b97680396 chore(cli): export schema generators via /api subpath (#7082)
Co-authored-by: Alex Yang <himself65@outlook.com>
2026-01-16 19:55:42 -08:00
Alex Yang e14c211afd chore: release v1.4.13 2026-01-14 19:20:36 -08:00
Alex Yang 9a7085c8e0 chore: add lint rule useConst (#7369) 2026-01-14 19:20:18 -08:00
Alex Yang 68b13c2a94 chore: fix lint warnings (#7336) 2026-01-14 19:20:18 -08:00
Paola Estefanía de CamposandAlex Yang 33aaacef8e feat(mcp): add setup_auth tool (#7307) 2026-01-14 19:20:18 -08:00
Alex Yang cb40989769 chore: release v1.4.12 2026-01-12 16:01:04 -08:00
Alex Yang 37b0bf00f4 chore: release v1.4.12-beta.2 2026-01-12 16:00:48 -08:00
Alex Yang 1e5947f28f chore: release v1.4.12-beta.1 2026-01-12 16:00:48 -08:00
Alex Yang 3b8db3418b chore: release v1.4.11 2026-01-12 02:50:38 -08:00
Wonsuk ChoiandAlex Yang 1359f1c6c7 chore: add --coverage.provider=istanbul to coverage script (#7262) 2026-01-12 02:50:02 -08:00
Alex Yang 037b81b2a2 chore: release v1.4.11-beta.2 2026-01-12 02:50:02 -08:00
Alex Yang d4dcea0fb2 chore: release v1.4.11-beta.1 2026-01-12 02:50:02 -08:00
TaesuandAlex Yang bcd66cd8fc chore(cli): bump drizzle-orm (#7172) 2026-01-12 02:50:02 -08:00
Alex Yang 4bf85c648f chore: release v1.4.10 2025-12-31 21:37:16 +08:00
Alex Yang 9f242af5a6 docs: fix mcp config name (#7067) 2025-12-31 21:36:19 +08:00
Alex Yang 3e13c535a6 chore: move @better-auth/utils to catalog (#6981) 2025-12-31 21:36:19 +08:00
Alex Yang 35fcd1aa89 chore: release v1.4.9 2025-12-23 23:46:35 +08:00
Alex Yangandgithub-actions[bot] bc8ac2a5fc fix(cli): cmd info --json unexpected exit with 1 (#6949) 2025-12-23 10:40:09 +00:00
Alex Yang 148b32e0cb chore: release v1.4.8 2025-12-23 14:25:03 +08:00
Dylan Vanmaliandgithub-actions[bot] f1b90e4085 feat(oauth-provider): an oauth 2.1 compliant plugin (#4163)
An upgrade to oidc-provider plugin that makes it oauth2.1 compliant and has a configuration that is secure by default.

Plans for the deprecation of oidc-provider plugin due to many inherent flaws in its design. Internally, plugin functions now share logic, providing for better future extensibility if new code_grants need to be written or user/client jwt or opaque tokens need to be written. Furthermore, as an oAuth 2.1 provider, it provides logic valid for an MCP server. When using the scope "openid" (optional, enabled by default), the server acts like an OpenId server able to issue id tokens and provides a /userinfo endpoint.

Features

OAuth 2.1 by default
Properly supports authorization_code, refresh_token, and client_credentials grants
PKCE by default (removes plain completely)
Public and confidential client registration
JWT plugin is required by default, but can be disabled using disableJWTPlugin flag
Access tokens can now be received in JWT verifiable format using the resource parameter (ie JWT aud field)
Id tokens are still verifiable by JWKS when using JWT Plugin, or clientSecret if disabled. Fixes issue to prevent public clients when disableJWTPlugin: true from obtaining id tokens directly even when they shouldn't be allowed an id token and should use /userinfo instead.
Protects /userinfo with scope check
Separates Refresh Token and Access token on database schema to allow multiple access tokens per refresh and multiple refresh tokens per login session.
oauthAccessToken strictly deals with opaque tokens
Opaque tokens are given only when resource parameter (aka audience) is not provided
Option to Encode and Decode refresh tokens
allowDynamicClientRegistration with allowUnauthenticatedClientRegistration flags
Separation of default expiration times
Proper creation of public and confidential clients
Prevents misconfiguration between .well-known/openid-configuration endpoint and plugin settings
scopeExpirations to assign scopes specific expiration
Custom claims through separated functions: customAccessTokenClaims, customIdTokenClaims, and customUserInfoClaims
Organizational support through activeOrganizationalId on a session such as through the organizational plugin. Attaches to oAuthClient via reference_id.
Rp-initiated logout
Account Selection via prompt=select_account.
Account Creation via prompt=create.
Prompt combinations prompt=select_account+consent and prompt=login+consent

Docs available at https://www.better-auth.com/docs/plugins/oauth-provider (pr: https://github.com/better-auth/better-auth/blob/main/docs/content/docs/plugins/oauth-provider.mdx)
2025-12-22 19:16:54 +00:00
Alex Yangandgithub-actions[bot] 542616e77b chore(db): remove deprecated types (#6793) 2025-12-17 08:19:09 +00:00
Bereket Engida e79b900bac chore: bump package versions to 1.4.7 for better-auth modules 2025-12-13 22:49:57 -08:00
Bereket Engida cc3c7bf60b Revert "chore: independent pkg bumping (#6628)"
This reverts commit ce17ac2616.
2025-12-13 22:48:25 -08:00
Dylan Vanmaliandgithub-actions[bot] 22a0053232 chore: independent pkg bumping (#6628) 2025-12-11 00:23:32 +00:00
Jonathan Saminesandgithub-actions[bot] 30b867a172 chore: add types linter (#6648) 2025-12-10 02:53:35 +00:00
Jonathan Saminesandgithub-actions[bot] 262df9b699 chore: remove unused variables (#6647) 2025-12-09 21:51:48 +00:00
Bereket Engida f6f3752e3d chore: release v1.4.6 2025-12-08 22:09:26 -08:00
Maxwellgithub-actions[bot]Bereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
6494d9039a fix: array field handling across adapters and schema generation (#6601)
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-12-08 23:51:05 +00:00
14d5ef9ab6 chore: configure code coverage for project (#6339)
Co-authored-by: Taesu <166604494+bytaesu@users.noreply.github.com>
2025-12-08 20:50:09 +00:00
Alex Yangandgithub-actions[bot] 28e88609af chore: update repository URLs in package.json (#6561) 2025-12-06 09:22:20 +00:00