Commit Graph
735 Commits
Author SHA1 Message Date
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
Maxwellandgithub-actions[bot] a501b0813c fix(cli): deduplicate drizzle schema relationships (#6547) 2025-12-06 01:08:22 +00:00
Jonathan Saminesandgithub-actions[bot] 870419144c chore: remove unused exports and export types (#6513) 2025-12-05 06:30:28 +00:00
Alex Yangandgithub-actions[bot] 0f9ee57c37 chore(cli): reduce better-auth imports (#6507) 2025-12-04 05:18:03 +00:00
Alex Yangandgithub-actions[bot] 951dfdd7e7 refactor: move capitalizeFirstLetter to core (#6506) 2025-12-03 23:21:15 +00:00
Alex Yangandgithub-actions[bot] 717752e19a chore: cleanup prisma deps (#6505) 2025-12-03 22:50:37 +00:00
Alex Yangandgithub-actions[bot] 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 YangandGitHub 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 YangandGitHub 5cbe0a58e7 chore: enforce imports to use node: protocol (#6461) 2025-12-01 16:08:32 -08:00
Jonathan SaminesandGitHub fbe51c8f93 chore: add spell checker (#6319) 2025-12-01 10:33:38 -08:00
Jonathan SaminesandGitHub efaef41640 feat: lint dependencies (#6309) 2025-12-01 09:01:54 -08:00
KinfeMichael TarikuandGitHub 39eb685200 fix: improve error handling for unsupported additionalFields on generate (#3977) 2025-11-29 22:27:45 -08:00
Joél SolanoandGitHub da7eac7c48 chore: fix dev script (#6403) 2025-11-29 09:18:23 -08:00
Ridhim Singh RaizadaandGitHub 1abd7147e4 feat(cli): better-auth-command (#6362) 2025-11-27 19:49:17 -08:00
Bereket Engida 01827f462d chore: release v1.4.4-beta.1 2025-11-26 12:09:17 -08:00
Bereket Engida 77c9ab9a49 chore: release v1.4.3 2025-11-26 12:09:09 -08:00
Neeraj DalalandGitHub 7cfc0c2597 chore(extend): cli utils get-config possible paths (#6300) 2025-11-26 08:25:21 +00:00
Jonathan SaminesandGitHub d7a2f6daf0 chore: add packages linter (#6313) 2025-11-25 22:10:34 +00:00
Bereket Engida b19cd1a511 chore: release v1.4.2-beta.5 2025-11-25 11:35:14 -08:00
MaxwellandGitHub 519efddef2 feat(cli): check /auth for auth.ts (#6273) 2025-11-24 11:49:11 -08:00
Alex Yang ee551b76bb chore: release v1.4.2-beta.4 2025-11-24 10:34:54 -08:00
Alex Yang 6fcced6adf chore: release v1.4.2-beta.3 2025-11-24 10:27:07 -08:00
Alex Yang a25bdaa8d9 chore: release v1.4.2-beta.2 2025-11-24 10:20:32 -08:00
04936e128f docs: updated og image and add merch link to community section (#6251)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Maxwell Weru <1645026+mburumaxwell@users.noreply.github.com>
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Slava Yultyyev <yultyyev@gmail.com>
Co-authored-by: Joél Solano <joelsolano@jsolano.de>
2025-11-23 20:35:38 -08:00
rovertrackandGitHub 183d38af00 fix(cli): prevent duplicate index creation in Prisma schema generation (#6234) 2025-11-23 19:27:07 -08:00
Bereket Engida 5a993ffb44 chore: release v1.4.1-beta.1 2025-11-22 08:41:09 -08:00
Bereket Engida a13c72e681 chore: release v1.4.0 2025-11-22 08:41:02 -08:00