Commit Graph
3873 Commits
Author SHA1 Message Date
7fa90f8d4d fix(organization): updated types for the user argument in allowUserToCreateOrganization to support custom fields (#3600)
* fix: organization allowUserToCreateOrganization user argument typing

* chore: changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-01 08:45:14 -07:00
SaviruandGitHub 884d3d5c1e docs: fix open plugins link in same tab (#3737) 2025-08-01 08:32:47 -07:00
KinfeMichael TarikuandGitHub c726753e69 feat: support multiple aud for apple oauth (#3710)
* support multiple aud

* update

* update

* changeset
2025-08-01 08:10:57 -07:00
MaxwellandGitHub 3225926889 docs(org): inferOrgAdditionalFields has wrong import path (#3734)
The newly introduced `inferOrgAdditionalFields` has the wrong import path in the docs.
2025-08-01 11:20:15 +03:00
4833a4b395 fix: incorrect initialization of remaining value within API key (#3648)
* Fixes #3640 - Resolves issue related to incorrect initialization of remaining value within API key.

* Adding test cases for fix of #3640.

* chore: update changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-01 00:22:15 -07:00
Bereket EngidaandGitHub 4d85d8709d revert "fix(username): isUsernameAvailable should validate usernames (#3680)" (#3730)
This reverts commit e60f780f28.
2025-07-31 23:53:32 -07:00
MaxwellandGitHub e60f780f28 fix(username): isUsernameAvailable should validate usernames (#3680) 2025-07-31 23:50:22 -07:00
Bereket Engida 5ce1473b19 chore: release v1.3.5-beta.1 v1.3.5-beta.1 2025-07-31 23:16:10 -07:00
Shawn ErquhartandGitHub 142136076a fix: cast dates from session to Date when using date methods (#3704)
* fix: cast dates from session to Date when using date methods

* add changeset
2025-07-31 23:15:19 -07:00
Marcel Losso ForteandGitHub 89a0ad3395 docs: addd better-auth-localization to community plugins (#3727) 2025-07-31 22:39:22 -07:00
Grant GandGitHub 60c92fab0b fix(jwt): expose jwt options to plugins (#3726) 2025-07-31 22:27:26 -07:00
b27221b356 feat: return false from generateId callback to imply database-generated ID (#3723)
* feat: return false from generateId to imply database-generated ID

* chore: add changeset

* chore: update changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-31 17:21:34 -07:00
KinfeMichael TarikuandGitHub 67f84d5d94 fix(expo): improve cookie expiration handling (#3705)
* fix: cookie expiration in expo

* changesets
2025-07-31 16:32:54 -07:00
Ambuj KumarandGitHub 685f70ae3d docs: update dodopayments docs due to breaking change in the package (#3715)
since version 1.0.0, all the endpoints exposed by the
@dodopayments/better-auth adapter now include a `dodopayments` prefix to
prevent conflict with other payment related better-auth plugins.
2025-07-31 16:23:28 -07:00
KinfeMichael TarikuandGitHub 0656f3ef95 chore: add sitemap (#3720) 2025-07-31 11:22:48 -07:00
Braden WongandGitHub 33b0635c4d docs(hono): clarify CORS middleware must be registered before routes (#3707)
- Add complete example showing app.on() and serve() after CORS setup
- Include important note explaining CORS must come before route registration
- Ensures consistency with middleware section and prevents user confusion
- Critical for proper cross-origin request handling in authentication endpoints
2025-07-31 00:24:22 -07:00
MaxwellandGitHub 15e0e59f6d docs: remove invalid customPaths option (#3709)
Previously a merged PR had this, but that PR was revered however didn't reverse the docs for it.
2025-07-31 00:19:18 -07:00
Mikel SolabarrietaandGitHub 85ef3bd198 docs: update usernameValidator example return type from bool|undefined to bool (#3702) 2025-07-30 14:21:29 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
4ad0a419d3 chore(deps): update dependency next to v15.3.3 [security] (#3666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-29 21:58:56 -07:00
Bereket EngidaandGitHub 2ec8cad610 fix(stripe): fallback to subscription id instead of picking the first sub if id is provided (#3696)
* fix(stripe): fallback to subscription id instead of picking the first if subId is provided

* chore(changeset): add changeset for fallback to subscription id in stripe
2025-07-29 20:59:22 -07:00
Xuezhou DaiandGitHub d1d593f2d1 fix(admin): export type definitions from the admin plugin (#3628) 2025-07-29 14:22:34 -07:00
978b28588e chore: remove unnecessary console log (#3691)
* chore: cleanup log

* chore: add changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-29 10:47:14 -07:00
Dylan VanmaliandGitHub ed574aa2fb chore: twitter fix should be patch changeset (#3681) 2025-07-28 18:32:06 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ecb4408c41 chore(deps): update dependency vite to v6 [security] (#3667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-28 12:41:17 -07:00
Bereket Engida 259184641e chore: renovate 2025-07-27 23:25:05 -07:00
Bereket Engida e27523fd07 chore: cleanup database guide 2025-07-27 22:01:02 -07:00
Bereket Engida de50a5a41c docs: fix typo on cookies guide 2025-07-27 22:01:02 -07:00
29c0df5f12 fix: pass loginHint to Microsoft oauth URL (#3663)
* Pass `loginHint` to Microsoft OAuth URL

* chore: lint

* chore: add changeset

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-27 21:55:51 -07:00
Bereket Engida 040092bf7c docs: fix typo 2025-07-27 21:52:59 -07:00
Bereket Engida 65fed29873 docs: improve cookie concept guide 2025-07-27 21:51:33 -07:00
KinfeMichael TarikuandGitHub a066293b35 docs: replace changelog og image (#3661) 2025-07-27 20:30:16 -07:00
Bereket Engida d587f5b604 chore: enable subdomain cookies 2025-07-27 20:29:38 -07:00
Tayfun GülcanandGitHub 76cac0eaa6 docs: fix import typo in svelte kit guide (#3654) 2025-07-27 17:51:41 -07:00
Marcel Losso ForteandGitHub 3afb25a780 docs: update password change instructions (#3641)
* docs: update password change instructions

* docs: add missing `requireSession` to change-password API method
2025-07-27 13:15:02 -07:00
ChaseandGitHub e4af2530f0 fix: twitter refresh token requires basic authentication (#3652)
* Use basic auth for refreshing token

* change set
2025-07-27 13:13:59 -07:00
Marcel Losso ForteandGitHub e7af3aa80c docs: typo and wrong ref for additional fields in Email & Password page (#3639) 2025-07-26 20:15:54 -07:00
Bereket EngidaandGitHub a536de91c2 fix(stripe): update customer id should also trigger secondary storage update (#3635)
* fix: update customer id should also update secondary storage

* chore: add changeset
2025-07-26 12:07:55 -07:00
Bereket Engida 8fdcf54a7b docs: fix account deletion process for OAuth users 2025-07-26 11:47:24 -07:00
23d6f30b41 chore: ensure zod version alignment via peerDependency (#3619)
* zodv4

* fix

* lock

* pkg

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-26 09:02:54 -07:00
Bereket Engida 02f19810d6 chore(release): version packages @better-auth/cli@1.3.4 @better-auth/expo@1.3.4 @better-auth/sso@1.3.4 @better-auth/stripe@1.3.4 better-auth@1.3.4 2025-07-26 01:10:54 -07:00
Bereket EngidaGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
776c4ae3fe chore(release): version packages (#3623)
* chore(release): version packages

* chore: remove lock file

* chore: fix ci

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-26 00:56:29 -07:00
Bereket EngidaandBereket Engida 2b2fd0c77d chore: fix ci 2025-07-26 00:35:37 -07:00
Bereket Engida 2bd2fa9864 chore: add changeset 2025-07-26 00:35:37 -07:00
Bereket EngidaandBereket Engida be544ce355 chore: release v1.3.4-beta.3 2025-07-26 00:35:37 -07:00
5bfabed2b2 fix: cast dates from db to Date when using date methods (#3611)
* docs(api-key): move schema section to the bottom

* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)

* fix: ensure session is added to context when reading from cookie cache (#3578)

When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.

* chore: export siwe in better-auth/plugins (#3596)

The docs were using this import path, yet `siwe` wasn't exported there. This PR fixes this.

* chore: fix cookies test

* docs: make client-side vs. server-side explicit (#3603)

* docs: fix broken link to ERC-4361 in siwe docs (#3604)

* fix(jwt): ensure alg is added to the jwks when generating via /token endpoint (#3601)

* fix: Ensure alg is added to the jwks when generating via /token endpoint

* chore: resolve linting issues

* fix: cast dates from db to Date when using date methods

* fix lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Justin <127172022+jl33-ai@users.noreply.github.com>
Co-authored-by: Fraol Lemecha <fraol0912@gmail.com>
Co-authored-by: Elliott Minns <elliott.minns@pm.me>
2025-07-26 00:35:37 -07:00
8a50ac4b0c chore: improve client inference for organization additional fields (#3612)
* docs(api-key): move schema section to the bottom

* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)

* fix: ensure session is added to context when reading from cookie cache (#3578)

When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.

* chore: export siwe in better-auth/plugins (#3596)

The docs were using this import path, yet `siwe` wasn't exported there. This PR fixes this.

* chore: fix cookies test

* fix: client inference for organization additional fields

* improve additional fields

* fix build

* fix test

---------

Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2025-07-26 00:35:37 -07:00
Bereket EngidaandBereket Engida fbff0e8781 chore: release v1.3.4-beta.2 2025-07-26 00:35:37 -07:00
Bereket EngidaandBereket Engida 847ee881d6 docs: add list member 2025-07-26 00:35:37 -07:00
Bereket EngidaGagan Gcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
e8b3d2c26b feat: list organization memebrs with pagination and filter queries (#3581)
* docs(api-key): move schema section to the bottom

* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)

* fix: ensure session is added to context when reading from cookie cache (#3578)

When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.

* feat(organization): add membersLimit param to allow to fetch more or less members than the membership limit

* add test

* Update packages/better-auth/src/plugins/organization/adapter.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* feat(organization): add list members with pagination and filter

* chore: lint

* cleannup

---------

Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-26 00:35:37 -07:00
Bereket EngidaGagan Gcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
518ab70495 feat(organization): add membersLimit param to allow to fetch more or less members than the membership limit (#3580)
* docs(api-key): move schema section to the bottom

* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)

* fix: ensure session is added to context when reading from cookie cache (#3578)

When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.

* feat(organization): add membersLimit param to allow to fetch more or less members than the membership limit

* add test

* Update packages/better-auth/src/plugins/organization/adapter.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-26 00:35:37 -07:00