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 Tariku and Bereket 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 Tariku and GitHub
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 Tariku and GitHub
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 Tariku and GitHub
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 Engida and GitHub
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
Leo Lorenzo Luis and GitHub
c495983c78
chore: update peer deps for zod 3 to ^3.25.0 ( #4040 )
2025-08-16 00:34:24 -07:00
Bereket Engida
7d284cf35e
chore: release v1.3.7-beta.3
v1.3.7-beta.3
2025-08-15 21:50:26 -07:00
Bereket Engida
ed57fb8bc7
fix: use wider types for database hooks payloads
2025-08-15 21:34:39 -07:00
Bereket Engida
730773bf88
chore: release v1.3.7-beta.2
v1.3.7-beta.2
2025-08-15 18:30:16 -07:00
Bereket Engida
d739179fa3
chore: disable body for stripe
2025-08-15 18:30:10 -07:00
Bereket Engida
b386d5edc1
chore: clean up api key hooks
2025-08-15 13:47:35 -07:00
KinfeMichael Tariku and GitHub
47c1fd4b16
fix(organization): prevent fk constraint violation when creating invitation without teams ( #4035 )
...
* fix(org): prevent foreign key constraint violation when creating invitations without teams
* lint
2025-08-15 13:45:01 -07:00
df54827ace
fix: memory leak in custom session plugin ( #4020 )
...
* fix: memory leak with getSession
* test
* lint
* chore: remove unnecessary comment
---------
Co-authored-by: Work <work@Jasons-MacBook-Pro.local >
Co-authored-by: Kinfe123 <kinfishtech@gmail.com >
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com >
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com >
2025-08-15 09:01:33 -07:00
Dagmawi Babi and GitHub
c93d84b478
docs: Google and Roblox to use a space in the prompt value instead of a plus ( #4027 )
2025-08-15 08:59:29 -07:00
KinfeMichael Tariku and GitHub
48a9133224
fix: prevent file system access when telemetry is disabled ( #4031 )
2025-08-15 08:58:16 -07:00
Bereket Engida
ef481d8dcc
chore: fix broken testomnial link
2025-08-15 08:29:23 -07:00
KinfeMichael Tariku and GitHub
70fe634267
fix: throw proper error if session is null when deleting organization ( #4024 )
2025-08-15 15:17:20 +03:00
Noam Shemesh and GitHub
375e9f3ced
fix(sveltekit): use permissive typing for RequestEvent params ( #3994 )
2025-08-14 22:05:11 -07:00
dbaae0ab2b
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-14 18:45:57 -07:00
Bereket Engida
2128b211da
Merge branch 'canary' of https://github.com/better-auth/better-auth into canary
2025-08-14 18:35:31 -07:00
KinfeMichael Tariku and Bereket Engida
f8b07c9a5a
chore: use import utils ( #4010 )
2025-08-14 18:35:26 -07:00
Fraol Lemecha and Bereket Engida
00f4f7bcd2
feat: add disableRedirect to linkSocial ( #4014 )
...
* feat: add `disableRedirect` to `linkSocial`
* fix: do not redirect if url is an empty string
2025-08-14 18:35:26 -07:00
KinfeMichael Tariku and Bereket Engida
8023a72c0d
fix(telemetry): process referenced on non-nodejs runtime ( #4007 )
...
* process in cf worker
* lint
2025-08-14 18:35:26 -07:00
Yakup Ensar Sayın and Bereket Engida
3857c57c16
feat(admin): add control to prevent admin users from deleting themselves ( #4008 )
...
* feat(admin): add control to prevent admin users from deleting themselves
* fix(admin): fix naming inconsistency
2025-08-14 18:35:26 -07:00
Atharva Deosthale and Bereket Engida
f6480d7056
fix(admin): impersonatedBy not appearing in client (type fix) ( #1854 )
2025-08-14 18:35:26 -07:00
Bereket Engida
7a1461cbef
chore: release v1.3.7-beta.1
2025-08-14 18:35:26 -07:00
Bereket Engida and Bereket Engida
209c791031
chore(telemetry): refactor config file path handling and add runtime import utility ( #3989 )
2025-08-14 18:35:26 -07:00
b165c13055
feat(email-otp): add check verification otp endpoint ( #1149 )
...
* Improve OTP password reset flow
* Doc improvements
* Logic improvements
* nit
* Prevent too many attempts
* Changeset
* chore: changeset
* chore: remove braces
---------
Co-authored-by: Bereket Engida <Bekacru@gmail.com >
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com >
2025-08-14 18:35:26 -07:00
KinfeMichael Tariku and Bereket Engida
1993317251
fix(cli): clean up unused pg and mysql import in drizzle schema generator ( #3974 )
...
* fix(cli): clean up unused pg import in schema generator
* sql clean up
* clean up
2025-08-14 18:35:26 -07:00
de8fb7a2f8
feat(vk): add user name mapping by default ( #3970 )
...
Co-authored-by: Шевелев Даниил <ds.shevelev@vebtech.by >
2025-08-14 18:35:26 -07:00
Bereket Engida
5c628ea703
Merge branch 'main' into canary
2025-08-14 18:30:51 -07:00
KinfeMichael Tariku and GitHub
3747b8ac08
chore: use import utils ( #4010 )
2025-08-14 17:39:05 -07:00
Fraol Lemecha and GitHub
ff40565b33
feat: add disableRedirect to linkSocial ( #4014 )
...
* feat: add `disableRedirect` to `linkSocial`
* fix: do not redirect if url is an empty string
2025-08-14 17:24:34 -07:00
KinfeMichael Tariku and GitHub
aa19de34bc
fix(telemetry): process referenced on non-nodejs runtime ( #4007 )
...
* process in cf worker
* lint
2025-08-14 12:47:05 -07:00
Yakup Ensar Sayın and GitHub
7f9a71db39
feat(admin): add control to prevent admin users from deleting themselves ( #4008 )
...
* feat(admin): add control to prevent admin users from deleting themselves
* fix(admin): fix naming inconsistency
2025-08-14 12:46:31 -07:00
KinfeMichael Tariku and Bereket Engida
c5c9bf0744
fix(cli): add FK onDelete cascade and CURRENT_TIMESTAMP defaults on generation ( #3906 )
...
* fix(db): add FK onDelete (cascade) and CURRENT_TIMESTAMP defaults for date columns
* default generate
* console
* update
2025-08-13 18:14:01 -07:00
KinfeMichael Tariku and GitHub
1cbea683d8
fix(cli): add FK onDelete cascade and CURRENT_TIMESTAMP defaults on generation ( #3906 )
...
* fix(db): add FK onDelete (cascade) and CURRENT_TIMESTAMP defaults for date columns
* default generate
* console
* update
2025-08-13 18:13:01 -07:00
Atharva Deosthale and GitHub
86e3b0f7f9
fix(admin): impersonatedBy not appearing in client (type fix) ( #1854 )
2025-08-13 17:31:06 -07:00
Bereket Engida
243943ec12
chore: release v1.3.7-beta.1
v1.3.7-beta.1
2025-08-13 16:38:06 -07:00
Bereket Engida and GitHub
7b3785ecd4
chore(telemetry): refactor config file path handling and add runtime import utility ( #3989 )
2025-08-13 16:37:34 -07:00