Commit Graph
4046 Commits
Author SHA1 Message Date
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 ef481d8dcc chore: fix broken testomnial link 2025-08-15 08:29:23 -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
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
b622836703 docs: update section testimonial (#3964)
* docs: resolve overlapping border in the community page (#3962)

* chore: release v1.3.6

* docs: update section "people say"

* Update people-say.tsx

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-13 12:45:20 -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 v1.3.6 2025-08-12 20:13:13 -07:00
Bereket Engida ad9eee9370 Merge branch 'canary' 2025-08-12 20:12:50 -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 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
KinfeMichael TarikuandGitHub 91214268ef docs: resolve overlapping border in the community page (#3962) 2025-08-12 19:43:01 -07:00
84f8f659ce 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>
2025-08-12 18:48:20 -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
KinfeMichael TarikuandGitHub b332ff620e fix(email-otp): type issue with extractOptionPropertyTypes (#3961) 2025-08-12 17:45:35 -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 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
Ben AgnewandGitHub 0d16d8e02c fix(cli): incorrect api for auto increment in drizzle schema generation(#3940) 2025-08-11 17:37:52 -07:00
Bereket Engida 95c7ee3e44 chore: remove changeset 2025-08-11 14:45:50 -07:00
Bereket Engida a4d49d0767 Merge branch 'main' of https://github.com/better-auth/better-auth 2025-08-11 12:03:35 -07:00
Bereket Engida 18dd971d9b chore: merge branch 'main' into canary 2025-08-11 11:56:41 -07:00
namgphamandGitHub f105f85c19 docs: added comment on sveltekit plugin integration (#3899)
Added comment to the user to place cookie setting plugin as the last item in the array similar to Next.js.

If not, will deal with problems on other plugins such as twoFactor
2025-08-11 10:42:12 -07:00
Bereket Engida bd662ed50c chore: release v1.3.5 v1.3.5 2025-08-11 09:58:58 -07:00
Bereket Engida 96a0b621cd chore: release v1.3.5 2025-08-11 09:58:40 -07:00
Bereket Engida cfa295813c docs: hero padding should match the features section 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 5a3f0b60e9 docs: update missing links on contribution guide (#3922)
* docs: unify component implementations for consistency (#3799)

* fix(docs): unify component implementations for consistency

* update

* docs: contribution guide link

* lint
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
Typed SIGTERMandBereket Engida da16047c3a chore: update bug report template (#3905) 2025-08-11 09:58:40 -07:00
dependabot[bot]Bereket Engidadependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0fdb1db805 chore(deps): bump form-data from 3.0.3 to 3.0.4 (#3919)
Bumps [form-data](https://github.com/form-data/form-data) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/v3.0.4/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v3.0.3...v3.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 3.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
Bereket Engida 90cbf6803b chore(demo): fix deployement 2025-08-11 09:58:40 -07:00
Bereket Engida 7413783464 chore: fix demo typechecking 2025-08-11 09:58:40 -07:00
Bereket Engida 865641e1d0 chore: change examples url 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 6576c338aa chore: release v1.3.5-beta.7 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
KinfeMichael TarikuandBereket Engida 15e0527a0b docs: add callout to populate event.locals.user and session in handlers (#3910)
* docs: add callout to set event.locals.user/session in handle

* update

* docs
2025-08-11 09:58:40 -07:00
+2 cf65b2cb60 fix: remove deep array merge when merging hooks context (#3160)
* Update to-auth-endpoints.ts

fixed

* biome error

* first commit

* fix(org): use correct slug lookup when setting active org

* docs: adding reference to surrealdb adapter rewrite (#3754)

Adding reference to surrealdb adapter rewrite, with passing tests and schema generation as well as surreal native parameters.

* chore(demo): replace isLoading using `useTransition` (#3775)

* fix: use `useTransition` for isLoading

* fixup! fix: use `useTransition` for isLoading

* fix(reddit): refresh access token should use `basic` auth (#3753)

* reddit auth type

* changesets

* chore: remove changeset

---------

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

* docs: unify component implementations for consistency (#3799)

* fix(docs): unify component implementations for consistency

* update

* fix: add missing team reference in teamMember schema (#3801)

* fix(organization): team members should be cleaned up on delete team (#3833)

* feat(stripe): create billing portal session (#3625)

* feat(stripe) : add billing portal session endpoint

* create billing portal session

* update docs

* chore: changeset

* chore: fix stripe

* chore: remove comment

* chore: update docs

---------

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

* fix(cli): prisma schema generate mismatch on custom plugin table names (#3021)

* fix: generate mismatch

* clean up

* linkt

* lint

* clean up

* clean up

* lint

* lint

* test

* clean up

* clean up

* lint

* update

* docs: update TOTP 2FA docs to state that Better-Auth implements a delay window (#3586)

Better Auth uses a delay window for TOTP code verification to ensure that it is resilient to time delays

* docs: remove unused import of 'auth' type in authClient setup (#3856)

In the previous implementation, the import statement for 'auth' type from './auth' was included as part of the setup for the authClient, but it is no longer being used in the current code. This update removes the unnecessary import to clean up the code and prevent potential confusion.

Additionally, the authClient setup remains intact with the use of 'inferAdditionalFields' plugin to define additional user fields (role type set to 'string').

- Removed unused import: `import type { auth } from "./auth"`
- Kept the authClient initialization with 'inferAdditionalFields' plugin

This resolves a minor issue and ensures that the code remains clean and maintainable.

* docs: enhance trustedOrigins option with examples (#3857)

* docs: enhance trustedOrigins option documentation

* nit

* docs: fix typo in SSR performance section

The line was missing "the".

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>

* chore: update api key docs (#3864)

Closes #3724

* docs: fix google auth prompt (#3894)

Google OAuth2 uses space delimiters instead of + 

https://developers.google.com/identity/protocols/oauth2/web-server

* docs(hono): update RPC client to use init config instead of custom fetch (#3597)

* add test

* chore: lint

---------

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Manuel Sanchez <manuel@msanchez.dev>
Co-authored-by: Alex Yang <himself65@outlook.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: dogus <147812199+rhitune2@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Hysterelius <71912794+Hysterelius@users.noreply.github.com>
Co-authored-by: Jovan Lanutan <jolanutan@gmail.com>
Co-authored-by: Nate <37544626+ntedvs@users.noreply.github.com>
Co-authored-by: Dagmawi Babi <44819176+dagmawibabi@users.noreply.github.com>
Co-authored-by: Braden Wong <13159333+braden-w@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
Oskar GmerekandBereket Engida fa4c6fb3e4 fix(username): remove normalize transform for displayUsername (#3912)
* fix(username): remove normalize transform for displayUsername
feat(username): add displayUsernameValidator

* feat(username): enhance username plugin with display username normalization and validation options

* docs

* update api

* update docs

* update docs

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
Bereket Engida 08d9c7327f chore: release v1.3.5-beta.6 2025-08-11 09:58:40 -07:00
Bereket Engida f1898b005a chore: remove unused import 2025-08-11 09:58:40 -07:00