Commit Graph

748 Commits

Author SHA1 Message Date
Luís Rudge
9d950aaade chore: fix opencode tag and MCP command structure (#7451)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2026-01-19 22:09:37 -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
Max
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 Campos
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 Choi
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
Taesu
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 Yang
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 Vanmali
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 Yang
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 Vanmali
22a0053232 chore: independent pkg bumping (#6628) 2025-12-11 00:23:32 +00:00
Jonathan Samines
30b867a172 chore: add types linter (#6648) 2025-12-10 02:53:35 +00:00
Jonathan Samines
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
Maxwell
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
Jonathan Samines
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 Yang
28e88609af chore: update repository URLs in package.json (#6561) 2025-12-06 09:22:20 +00:00
Maxwell
a501b0813c fix(cli): deduplicate drizzle schema relationships (#6547) 2025-12-06 01:08:22 +00:00
Jonathan Samines
870419144c chore: remove unused exports and export types (#6513) 2025-12-05 06:30:28 +00:00
Alex Yang
0f9ee57c37 chore(cli): reduce better-auth imports (#6507) 2025-12-04 05:18:03 +00:00
Alex Yang
951dfdd7e7 refactor: move capitalizeFirstLetter to core (#6506) 2025-12-03 23:21:15 +00:00
Alex Yang
717752e19a chore: cleanup prisma deps (#6505) 2025-12-03 22:50:37 +00:00
Alex Yang
0ca6db0f76 fix(cli): secret generates empty (#6504) 2025-12-03 21:40:45 +00:00
Alex Yang
2000fd63d0 chore: release v1.4.5 2025-12-02 16:06:34 -08:00
Alex Yang
c666670fbe chore: release v1.4.5-beta.1 2025-12-02 11:29:32 -08:00
Alex Yang
123bdee671 fix(cli): compatibility for Prisma v7 in schema generation (#6459) 2025-12-02 11:27:36 -08:00
Bereket Engida
189dedd006 chore: release v1.4.4-beta.3 2025-12-02 10:10:51 -08:00
Bereket Engida
6269a332dd chore: release v1.4.4-beta.2 2025-12-02 10:10:47 -08:00
Alex Yang
5cbe0a58e7 chore: enforce imports to use node: protocol (#6461) 2025-12-01 16:08:32 -08:00
Jonathan Samines
fbe51c8f93 chore: add spell checker (#6319) 2025-12-01 10:33:38 -08:00
Jonathan Samines
efaef41640 feat: lint dependencies (#6309) 2025-12-01 09:01:54 -08:00
KinfeMichael Tariku
39eb685200 fix: improve error handling for unsupported additionalFields on generate (#3977) 2025-11-29 22:27:45 -08:00
Joél Solano
da7eac7c48 chore: fix dev script (#6403) 2025-11-29 09:18:23 -08:00
Ridhim Singh Raizada
1abd7147e4 feat(cli): better-auth-command (#6362) 2025-11-27 19:49:17 -08:00