Commit Graph
6933 Commits
Author SHA1 Message Date
KinfeMichael TarikuandGitHub 6d4091dfdf docs: fix correct listUsers usage client-side API docs (#4119) 2025-08-21 10:03:10 -07:00
Alexander Abou ChedidGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
7772265c35 fix(oauth2): correct basic auth header construction for refresh token (#4126)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-21 08:22:20 -07:00
Alex YangandGitHub dd4e06661c ci: test for node.js 22 (#4111) 2025-08-20 16:57:22 -07:00
Alex YangandGitHub 73da454c6c fix(client): avoid atom to be proxy (#4079) 2025-08-20 16:30:04 -07:00
Alex YangandGitHub bb634a0f5c fix(cli): generate throws error with default export (#4113) 2025-08-20 16:25:32 -07:00
c05b103c3e feat: remote sign a jwt payload (#4074)
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-08-20 15:51:02 -07:00
Alex YangandGitHub 3ad5ef72c5 fix: avoid general oauth flow duplicate user (#3839) 2025-08-20 14:06:33 -07:00
Alex YangandGitHub fc8a25abd0 feat: support node:sqlite (#3869) 2025-08-20 12:57:30 -07:00
Alex YangandGitHub a686a8c5aa fix: check x-api-key for all auth endpoint (#4083) 2025-08-20 09:56:11 -07:00
Eniola OsabiyaandGitHub d9f8806090 fix(cli): check for undefined defaultValue instead of truthy value when generating drizzle schema(#3512) 2025-08-20 09:35:44 -07:00
Alex YangandGitHub d921471a74 test: flaky becase cleanup function not called (#4099) 2025-08-19 20:29:39 -07:00
Alex YangandGitHub 1959eb872e chore: bump biome (#4096) 2025-08-19 19:01:10 -07:00
94bdf7f218 fix (oidc): payload times should be in sec (#4075)
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-08-19 19:01:01 -07:00
Alex YangandGitHub 6055a12a9b fix: move stack check into inner function (#4094) 2025-08-19 18:31:21 -07:00
Alex YangandGitHub 48f915b9ba feat: support to infer error types from endpoint (#4095) 2025-08-19 18:04:54 -07:00
Alex YangandGitHub 12ae7c7b1c fix: show error stack in debug mode (#4091) 2025-08-19 16:13:41 -07:00
Alex YangandGitHub 059d7b3bdb chore: bump better-call (#4088) 2025-08-19 13:59:43 -07:00
4472f679f0 docs: auth0 migration guide (#3165)
* migration guide

* update and lint

* added in remove list

* update

* update

* update

* update

* docs

* migration

* update

* docs

* update

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-19 11:07:36 -07:00
Fraol LemechaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
7b6f3fad8b fix: telemetry should be opt in not opt out (#4081)
* fix(telemetry): make telemetry opt in

* fix(telemetry): remove telemetry notice

* fix(docs): remove redundant "is"

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

* test(telemetry): opt in to telemetry in tests

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-19 10:28:58 -07:00
Bereket Engida fc47acad5f chore: release v1.3.8-beta.1 v1.3.8-beta.1 2025-08-18 21:26:57 -07:00
99834437b0 fix: secondary storage should allow returning both string and parsed json (#4076)
* docs: hero section alignment with feature section on big screens (#4018)

* fix: hero section alignment with feature section on big screens

* fix

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>

* chore: fix broken testomnial link

* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization

* chore: update sso docs

* chore: fix import typo

* docs: hero section alignment with feature section on big screens (#4018)

* fix: hero section alignment with feature section on big screens

* fix

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>

* chore: fix broken testomnial link

* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization

* chore: update sso docs

* chore: fix import typo

* chore: release v1.3.7-beta.4

* chore: release v1.3.7

* support both json and string

* add test and type

* fix up docs

* fix test

* fix test

* fix type

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-18 21:08:39 -07:00
Aditya IngoleandAlex Yang e08cf6fb44 fix(client): prevent proxy promise-like behavior (#3679)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Alex Yang <himself65@outlook.com>
(cherry picked from commit 9437828576)
2025-08-18 18:39:35 -07:00
9437828576 fix(client): prevent proxy promise-like behavior (#3679)
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Alex Yang <himself65@outlook.com>
2025-08-18 18:36:29 -07:00
Alex YangandGitHub 789f4013e8 fix: constant time compare (#4077) 2025-08-18 18:22:50 -07:00
Dylan VanmaliandGitHub 74ccf8dac5 feat(jwt): jwks remote url (#4071) 2025-08-18 14:18:11 -07:00
Dylan VanmaliandGitHub 4b8a2f62b9 feat(jwt): add disableSettingJwtHeader flag to prevent issuance of signed jwt (#4072) 2025-08-18 14:17:30 -07:00
Alex YangandGitHub da52400a51 docs: fix typos (#4069) 2025-08-18 10:50:00 -07:00
Alex YangandGitHub 1815fb2b3f chore: lint json files (#4068) 2025-08-18 10:27:15 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
341a0ec777 chore(deps): update github-actions (#4061)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-18 09:55:51 -07:00
Tobias MöritzandGitHub 06b1da293e docs: add better auth attio (#4063) 2025-08-18 09:53:45 -07:00
Andy BonventreandGitHub b0adcf4370 chore: fix token encryption doc code snippet (#4067) 2025-08-18 09:52:49 -07:00
a09996173a docs: fix missing user table name for 2fa plugin field reference (#4029)
Added the explicit user table name for better readability and understanding

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-18 10:43:01 +03:00
Thomas JowseyandGitHub 247bae5968 docs: fix getRequestEvent SvelteKit version callout (#4058)
Reference: https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md#2200
2025-08-18 10:34:53 +03:00
Bereket Engida 52c3fa9af5 chore: release v1.3.7 v1.3.7 2025-08-17 12:13:54 -07:00
Bereket Engida b9951daa9b chore: release v1.3.7-beta.4 v1.3.7-beta.4 2025-08-17 11:05:06 -07:00
Bereket Engida 757c8c9225 Merge branch 'main' of https://github.com/better-auth/better-auth 2025-08-17 11:03:43 -07:00
Bereket Engida 95f9e9a39a chore: fix import typo 2025-08-17 11:03:18 -07:00
Bereket Engida efa0c0ba1b chore: update sso docs 2025-08-17 11:03:18 -07:00
Bereket Engida 28e331a114 fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization 2025-08-17 11:03:18 -07:00
Bereket Engida 64216f1325 chore: fix broken testomnial link 2025-08-17 11:03:18 -07:00
KinfeMichael TarikuandBereket Engida 3fd858163a docs: hero section alignment with feature section on big screens (#4018)
* fix: hero section alignment with feature section on big screens

* fix

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-17 11:03:18 -07:00
KinfeMichael TarikuandGitHub 9a6a8d741b feat(cli): support sveltekit $ imports in CLI generate cmd (#4042)
* sync

* lint

* sync

* sync

* lint
2025-08-17 01:11:27 -07:00
KinfeMichael TarikuandGitHub 525128e624 fix(stripe): prevent undefined assignment to optional properties (#4037)
* fix(org): prevent foreign key constraint violation when creating invitations without teams

* fix(stripe): prevent undefined assignment to optional properties

* lint

* clean up

* clean up

* update

* merge-schema returns S
2025-08-17 01:11:07 -07:00
KinfeMichael TarikuandGitHub db30b900df chore: fix typo in README.md (#4050) 2025-08-17 10:32:56 +03:00
0c7e877195 fix(organization): resend invitation should reuse existing invitation instead of creating duplicate (#3520)
* fix: resend invitation should reuse existing invitation instead of creating duplicate

- Modified inviteMember to reuse existing pending invitations when resend=true
- Added logic to return existing invitation instead of creating new one
- Moved organization lookup earlier in the flow for proper access
- Added comprehensive test to verify resend behavior reuses same invitation ID
- Prevents duplicate invitation records in database when resending
- Fixes issue #3507 where resend was creating duplicates instead of being idempotent

The fix ensures that calling organization.inviteMember with resend=true:
1. Finds existing pending invitation for the email
2. Sends invitation email again using existing invitation data
3. Returns the same invitation object (same ID)
4. Does not create duplicate invitation records

* lint

* typecheck

* chore: add changeset for resend invitation fix

* fix: update invitation expiration on resend and simplify changeset

- Update expiration date to 48 hours when reusing existing invitations
- Simplify changeset description as requested by maintainer
- Addresses feedback from PR #3520

* fix: use configurable expiration time for resend invitations

- Replace hardcoded expiration with ctx.context.orgOptions.invitationExpiresIn
- Use getDate utility for consistency with createInvitation logic
- Maintain same 48-hour default when no custom expiration is set
- Addresses feedback about proper expiration handling

* chore: remove changeset

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-16 21:36:16 -07:00
Bereket Engida efa60af1c2 chore: fix import typo 2025-08-16 15:04:19 -07:00
Bereket Engida 5fdf5cd31a chore: update sso docs 2025-08-16 14:36:41 -07:00
Bereket Engida 9c46196268 fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization 2025-08-16 14:35:50 -07:00
Bereket EngidaandGitHub efcb6e73cc feat(jwt): sign with jwt for artbitrary payload (#4041) 2025-08-16 14:30:23 -07:00
c5d10fda64 feat(cli): resolves tsconfig references for path aliases (#3764)
* feat(cli): resolves tsconfig references for path aliases

Previously references field was ignored and path aliases were only taken
from main tsconfig file

* chore: generate changeset

* test(cli): config is loaded correctly with alias

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-16 09:34:50 -07:00