3955 Commits
Author SHA1 Message Date
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
Bereket Engida b73d3b26a7 chore: remove unused componenet 2025-08-11 09:58:40 -07:00
Fraol LemechaBereket EngidaKinfe123Bereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>Alex Yang
1e6735495e feat: add telemetry (#3822)
* feat: telemetry

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>

* chore: remove changeset

* fix: do not generate project id unless telemetry is enabled

* fix: return `isInsiderContainerCached`

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

* chore: remove unused utils file

* fix: properly cache generated project id

* feat: interpret empty env vars as false

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

* fix: use nullish coalescing to set fallback

* fix: should be `isInsideContainerCached`

* fix: unique icons + tooltip for telemetry component

* fix: import child process from node

* fix: remove quotes in description

Co-authored-by: Alex Yang <himself65@outlook.com>

* fix: address reviews

Co-authored-by: Alex Yang <himself65@outlook.com>

* chore: refactor

* refactor

* add tests

* cache pkg json

* add cli tracking

* add migrate

* chore fix xi

* skip tet

* update snapshot

* chore: fix typecheck

* Expand telemetry docs: list collected fields, clarify anonymous redaction via getTelemetryAuthConfig, and document CLI events and audit/opt‑out paths.

* docs

* doc cleanup

* fixes

* remove git first commit message

* update docs

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
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>
Co-authored-by: Alex Yang <himself65@outlook.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
Alex YangandBereket Engida 953ed14112 docs: hydration fix on wrapping table content (#3876) 2025-08-11 09:58:40 -07:00
MaxwellandBereket Engida 53260f22d8 fix(mcp): redirect returns json instead of 302 (#3838)
* fix(mcp): Redirect returns json instead of 302

https://github.com/better-auth/better-auth/issues/2914

* chore: lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
gwoodbridgeandBereket Engida 15c1e3b882 fix(organization): convert emails to lower case for invitation lookups (#3835)
* fix(organization): convert emails to lower case

* Add tests and convert listUserInvitations to lower case

* Fix lint and tests now that a new user is added to org

* Fix typecheck
2025-08-11 09:58:40 -07:00
Bereket Engida 24cc8085a0 chore: release v1.3.5-beta.5 2025-08-11 09:58:40 -07:00
Grant GandBereket Engida 18f72643ef feat(oidc-provider): allow passing oauth consent code via query params (#3845)
* feat: pass oauth consent code via query params

* address cubic comments

* fix tests

* address comments
2025-08-11 09:58:40 -07:00
Alex YangandBereket Engida dabc51a62a fix(tiktok): client id is not used for TikTok social provider (#3846)
* fix: client id is unused for TikTok social provider

* fix: set header
2025-08-11 09:58:40 -07:00
Bereket Engida 464bc5c731 chore: enable ci for all branches 2025-08-11 09:58:40 -07:00
KinfeMichael TarikuandBereket Engida ae8032e879 fix: ensure zod v4 type annotations work with core types (#3834)
* fix: ensure zod v4 type annotations work with core types

* chore: lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
Fraol LemechaandBereket Engida 07ce74ee3c fix: client secret should be optional in configuring the generic oauth plugin (#3824)
* fix: client secret should be optional because not all oauth authorizations method require it

* fix: use empty string as a secret fallback

* fix: don't use else if

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

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-08-11 09:58:40 -07:00
9498f68218 test: improve test case for email verification (#3746)
* test: add the test case for email verification

* fixup! test: add the test case for email verification

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
a54da1d24b feat: remove revoked session from active sessions list (#3820)
* feat: remove revoked session from active list

* feat: remove revoked session from active list

* should throw error?

* feat: bypass logger

* test: update

* chore: fix types

---------

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
Fraol LemechaandBereket Engida 7c43ff0bf2 fix(cli): only show the overwrite message when the schema file exists and the code has changed (#3826) 2025-08-11 09:58:40 -07:00
Bereket Engida 772e6c78cc chore: release v1.3.5-beta.4 2025-08-11 09:58:40 -07:00
4114681b4b fix(generic-oauth): set account id from mapped user fields when creating account (#3649)
* fix: generic oauth plugin - 

* chore: add changeset

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-11 09:58:40 -07:00
Bereket Engida 47359dc1b5 chore: release v1.3.5-beta.3 2025-08-11 09:58:40 -07:00
Bereket Engida 80b27f665e chore: upgrade better-call version 2025-08-11 09:58:40 -07:00
Grant GandBereket Engida b2ac809e5e feat(oidc-provider): add client to getAdditionalUserInfoClaim callback (#3790)
* feat: add oidc Client to getAdditionalUserInfoClaim

* address cubic comments

* run format
2025-08-11 09:58:40 -07:00
Alex YangandBereket Engida 84b5db26f8 feat: allow getUserInfo to return number type (#3816)
* fix: check user info id before link account

* fix: don't check

* feat: allow `getUserInfo` returns number type

* feat: allow `getUserInfo` returns number type

* fix: revert

* fix: lint
2025-08-11 09:58:39 -07:00
1b6145bf3f fix(mssql): "text" datatype is not working with mssql (#3144)
* fix(mssql-datatypes): text datatype is going to be removed from future version of SQL Server, Microsoft recommends to not use it anymore

* update: use varchar(max) instead

* fix

---------

Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2025-08-11 09:58:39 -07:00
Bereket Engida 46e248edb6 chore: remove log 2025-08-11 09:58:39 -07:00
KinfeMichael TarikuandBereket Engida ec660b305f fix(magic-link): magic link URL construction (#3770)
* magic link pathname issue

* lint

* changesets

* remove changesets

* respect basePath if baseUrl has no pathname
2025-08-11 09:58:39 -07:00
Alex YangandBereket Engida 50c465d73a chore: bump vitest version (#3810)
* chore: bump vitest version

* cleanup the server
2025-08-11 09:58:39 -07:00
Bereket Engida 45cedddbb0 chore: release v1.3.5-beta.2 2025-08-11 09:58:39 -07:00
Bereket Engida e5d2a5dbbd chore: bump biome (#3784) 2025-08-11 09:58:30 -07:00
Bereket EngidaandBereket Engida f88e4b8dfb feat(organization): add option for requiring email verificaiton (#3785)
* feat(organization): add option for requiring email verificaiton

* add rejection

* docs: add docs
2025-08-11 09:58:01 -07:00
24540ed727 fix: plugins options type compatibility issue with exactOptionalPropertyTypes enabled in ts-config (#3769)
* tsconfig option

* Create odd-forks-fail.md

changesets

* chore: remove changeset

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-08-11 09:58:01 -07:00