Commit Graph
6933 Commits
Author SHA1 Message Date
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
Bereket Engida cc9284447f chore: remove changeset ci 2025-08-11 09:58:01 -07:00
Bereket Engida 49055fc3b0 chore: remove changeset 2025-08-11 09:58:01 -07:00
Bereket Engida ccd22d4c4c chore: remove changeset and add contributing code of conduct 2025-08-11 09:58:01 -07:00
Alex YangandBereket Engida 1bbdcfbd77 fix: await ctx in middleware (#3783)
* fix: await ctx in middleware

* fix: lint

* Create tidy-impalas-fail.md
2025-08-11 09:58:01 -07:00
Bereket Engida 29cdaddd97 docs: hero padding should match the features section 2025-08-11 09:56:42 -07:00
2fb850c227 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 08:02:46 -07:00
Bereket Engida 358b5619af chore: fix ci 2025-08-11 07:32:35 -07:00
Alex YangandGitHub 8be5ede269 docs: remove unused import (#3927) 2025-08-11 14:12:20 +03:00
KinfeMichael TarikuandGitHub f242400b1b 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 14:09:07 +03:00
KinfeMichael TarikuandGitHub 17717d6b67 fix: handle inconsistent user update error in phone number plugin (#3925) 2025-08-11 14:08:06 +03:00
Typed SIGTERMandGitHub a6752eb059 chore: update bug report template (#3905) 2025-08-11 00:04:01 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
225447a38c 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 00:00:16 -07:00
Bereket Engida 909a0595ca chore(demo): fix deployement 2025-08-10 23:54:49 -07:00
Bereket Engida 6675691efe chore: fix demo typechecking 2025-08-10 23:48:34 -07:00
Bereket Engida a5bddf1675 chore: change examples url 2025-08-10 23:44:16 -07:00
Bereket EngidaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
e16a289f9e 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-10 22:55:29 -07:00
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
d72f17de5f fix(deps): update better-auth dependencies (#3916)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-10 20:51:20 -07:00
Bereket Engida e5707e38d1 chore: release v1.3.5-beta.7 v1.3.5-beta.7 2025-08-10 19:37:05 -07:00
Bereket Engida 435e3b5c7c chore: release v1.3.5-beta.7 2025-08-10 19:36:31 -07:00
Bereket EngidaandGitHub e6730153cb 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-10 19:35:29 -07:00
KinfeMichael TarikuandGitHub 0f668c8cb5 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-10 17:53:48 -07:00
+3 f363681f70 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-10 16:46:58 -07:00
c83a8a5ed1 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-10 15:34:31 -07:00
Bereket Engida 58779fce7b chore: release v1.3.5-beta.6 v1.3.5-beta.6 2025-08-10 01:30:01 -07:00
Bereket Engida 5fdc9dfb85 chore: remove unused import 2025-08-10 01:24:40 -07:00
Bereket Engida 820d394ac3 chore: remove unused componenet 2025-08-10 01:12:57 -07:00
Fraol LemechaGitHubKinfe123Bereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>Alex YangBereket Engida
2915e4c92d 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-10 01:11:56 -07:00
Braden WongandGitHub f281c92b99 docs(hono): update RPC client to use init config instead of custom fetch (#3597) 2025-08-10 08:32:24 +03:00
Dagmawi BabiandGitHub 5e0dace337 docs: fix google auth prompt (#3894)
Google OAuth2 uses space delimiters instead of + 

https://developers.google.com/identity/protocols/oauth2/web-server
2025-08-09 12:18:04 -07:00
Dagmawi BabiandGitHub 44c407a513 chore: update api key docs (#3864)
Closes #3724
2025-08-08 09:03:34 -07:00
Alex YangandGitHub 0a596beb3a docs: hydration fix on wrapping table content (#3876) 2025-08-08 14:31:48 +03:00
3cefabb7a1 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-07 17:18:44 -07:00
gwoodbridgeandGitHub b85c0fdd78 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-07 13:20:22 -07:00
0fe1770404 docs: fix typo in SSR performance section
The line was missing "the".

Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-08-07 19:25:57 +03:00
KinfeMichael TarikuandGitHub bb7d504efe docs: enhance trustedOrigins option with examples (#3857)
* docs: enhance trustedOrigins option documentation

* nit
2025-08-07 09:09:19 -07:00