Commit Graph
2632 Commits
Author SHA1 Message Date
Alex YangandGitHub 1815fb2b3f chore: lint json files (#4068) 2025-08-18 10:27:15 -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
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 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
Leo Lorenzo LuisandGitHub 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 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 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 TarikuandGitHub 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 BabiandGitHub 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 TarikuandGitHub 48a9133224 fix: prevent file system access when telemetry is disabled (#4031) 2025-08-15 08:58:16 -07:00
KinfeMichael TarikuandGitHub 70fe634267 fix: throw proper error if session is null when deleting organization (#4024) 2025-08-15 15:17:20 +03:00
Noam ShemeshandGitHub 375e9f3ced fix(sveltekit): use permissive typing for RequestEvent params (#3994) 2025-08-14 22:05:11 -07:00
KinfeMichael TarikuandBereket Engida f8b07c9a5a chore: use import utils (#4010) 2025-08-14 18:35:26 -07:00
Fraol LemechaandBereket 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 TarikuandBereket 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ınandBereket 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 DeosthaleandBereket 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 EngidaandBereket 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 TarikuandBereket 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
KinfeMichael TarikuandGitHub 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
Bereket Engida 98584f5f10 chore: disable notice if telemetry is disabled or on debug mode 2025-08-13 13:54:30 -07:00
Bereket Engida c7a272f261 Merge remote-tracking branch 'origin/canary' 2025-08-12 20:18:09 -07:00
Bereket Engida fe769793cf chore: release v1.3.6 2025-08-12 20:13:13 -07:00
JonasandGitHub f66df96ef5 chore: standardize error code capitalization and improve USER_ALREADY_EXISTS error code (#3957)
* Modify USER_ALREADY_EXISTS error code

* Standardize error-codes style
2025-08-12 20:04:25 -07:00
Bereket Engida af1b0f3f53 chore: release v1.3.6-beta.2 2025-08-12 19:58:07 -07:00
f6b5735ce9 fix: prevent static nodejs imports and lazy import for non-nodejs env (#3947)
* fix(cli): incorrect api for auto increment in drizzle schema generation(#3940)

* fix(organization): make plugin schema compatible with exactOptionalPropertyTypes; build schema object without undefined optional keys and merge team tables conditionally; keep session fields literal and add teams conditionally

* fix: restore non-Node.js support by lazily importing

* test

* cleanup

* clean up

* lint

* fix(email-otp): type issue with extractOptionPropertyTypes (#3961)

* docs: add github star count in the community section  (#3960)

* github star count

* cubix issue fix

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>

* chore: lint

---------

Co-authored-by: Ben Agnew <78829885+ben-agnew@users.noreply.github.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Dagmawi Babi <44819176+dagmawibabi@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-12 19:57:40 -07:00
80a71c02b9 fix(passkey): don't return undefined to correctly resolve promises (#3959)
Co-authored-by: Шевелев Даниил <ds.shevelev@vebtech.by>
2025-08-12 18:46:53 -07:00
2d5fdf4768 fix(cookies): use the right encoding for parsing session data for expo apps (#3909)
* fix(cookies): use base64url for session_data and Set-Cookie parsing

* chore: lint

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-12 18:19:13 -07:00
KinfeMichael TarikuandGitHub 610a81383b fix(organization): make schema compatible with exactOptionalPropertyTypes (#3941)
* fix(organization): make plugin schema compatible with exactOptionalPropertyTypes; build schema object without undefined optional keys and merge team tables conditionally; keep session fields literal and add teams conditionally

* fix(org): make plugin schema compatible with exactOptionalPropertyTypes

* clean up

* update

* update

* typecheck

* update
2025-08-12 18:13:05 -07:00
Fraol LemechaGitHubBereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
30600b02b9 chore(telemetry): ensure telemetry consent notice displays correctly (#3944)
* fix(telemetry): ensure telemetry consent notice displays correctly

* chore: check for process

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

* chore: fix lint error

---------

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-08-12 14:25:36 -07:00
Bereket Engida 031888178d chore: release v1.3.6-beta.1 2025-08-11 20:03:43 -07:00
Bereket EngidaandGitHub d8a7630ae2 fix(telemetry): remove node imports for compatibility and add telemetry notice (#3942)
* remove fs imports

* fix: detect-sys-info

* add notice

* cleanup

* remove notice

* add notice

* remove postinstall

* update docs
2025-08-11 20:03:17 -07:00
Bereket Engida 96a0b621cd chore: release v1.3.5 2025-08-11 09:58:40 -07:00
553fdd938a fix(organizaton): avoid cross organization member role updates (#3932)
* Add organization membership check before updating member role

* Fix lint error

* add test

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
Bereket Engida 50a623d7b9 chore: fix ci 2025-08-11 09:58:40 -07:00
KinfeMichael TarikuandBereket Engida 1ab4ef273d fix: handle inconsistent user update error in phone number plugin (#3925) 2025-08-11 09:58:40 -07:00
Bereket Engida 7413783464 chore: fix demo typechecking 2025-08-11 09:58:40 -07:00
Bereket EngidaBereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
0bf82b0655 chore: remove examples and dev folder (#3917)
* chore: remove examples

* chore: add integration tests for Bun and Cloudflare environments

- Introduced integration tests for Bun and Cloudflare, including authentication and database setup.
- Updated pnpm workspace configuration to include integration tests.
- Removed example projects and unnecessary dependencies from pnpm-lock.yaml.
- Added .gitignore files for both Bun and Cloudflare integration tests.
- Created necessary configuration files and schemas for database interactions.
- Updated package.json files to include relevant dependencies for integration testing.

* chore: check for navigtaor

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

* await docker

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

* await isWSL

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

* cloudflare checks

* lockfile

* chore: lint

* only run ci on specefic branches

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
renovate[bot]Bereket Engidarenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
5da9666fd1 fix(deps): update better-auth dependencies (#3916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
Bereket Engida 3825e583a6 chore: release v1.3.5-beta.7 2025-08-11 09:58:40 -07:00
Bereket EngidaandBereket Engida eee0f29add fix: allow returning response object to skip after hooks (#3914)
* fix: allow returning response object to skip after hooks

* add mcp test

* check if result is defined
2025-08-11 09:58:40 -07:00