Commit Graph
6905 Commits
Author SHA1 Message Date
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
Jovan LanutanandGitHub 236c29e270 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.
2025-08-07 19:08:40 +03:00
Bereket Engida 76205b773f chore: release v1.3.5-beta.5 v1.3.5-beta.5 2025-08-07 00:03:51 -07:00
Grant GandGitHub 7575ef6a43 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-07 00:03:05 -07:00
Alex YangandGitHub 079c33d5d8 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-06 23:38:42 -07:00
Bereket Engida 1e61973c30 chore: enable ci for all branches 2025-08-06 17:23:54 -07:00
Bereket Engida 0cc68ee9ba docs: fix missing import 2025-08-06 17:02:13 -07:00
HystereliusandGitHub 723a4f4dde 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
2025-08-06 17:00:11 -07:00
KinfeMichael TarikuandBereket Engida 4c4c259a54 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
2025-08-06 16:38:50 -07:00
422aa488b7 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>
2025-08-06 16:38:50 -07:00
KinfeMichael TarikuandBereket Engida f6f082b8ed fix(organization): team members should be cleaned up on delete team (#3833) 2025-08-06 16:38:50 -07:00
KinfeMichael TarikuandBereket Engida ddb20f089e fix: add missing team reference in teamMember schema (#3801) 2025-08-06 16:38:50 -07:00
KinfeMichael TarikuandBereket Engida f59343da43 docs: unify component implementations for consistency (#3799)
* fix(docs): unify component implementations for consistency

* update
2025-08-06 16:38:50 -07:00
fc67723b04 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>
2025-08-06 16:38:41 -07:00
Alex YangandBereket Engida 3ee67fcca0 chore(demo): replace isLoading using useTransition (#3775)
* fix: use `useTransition` for isLoading

* fixup! fix: use `useTransition` for isLoading
2025-08-06 16:38:41 -07:00
Manuel SanchezandBereket Engida f49a2fbf99 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.
2025-08-06 16:38:41 -07:00
KinfeMichael TarikuandBereket Engida 0eef0abc3b fix(org): use correct slug lookup when setting active org 2025-08-06 16:38:40 -07:00
KinfeMichael TarikuandGitHub 48063b6b3c 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
2025-08-06 16:35:03 -07:00
b5273623bf 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>
2025-08-06 16:09:32 -07:00
11d9a2b151 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-06 16:06:55 -07:00
11aaba0914 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-06 15:56:21 -07:00
d518df8d0f 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-06 11:39:11 -07:00
KinfeMichael TarikuandGitHub 9c4a7b5d96 fix(organization): team members should be cleaned up on delete team (#3833) 2025-08-06 11:35:04 -07:00
c956a23f7a 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-06 11:25:02 -07:00
Fraol LemechaandGitHub 2481c1d575 fix(cli): only show the overwrite message when the schema file exists and the code has changed (#3826) 2025-08-06 11:01:19 -07:00
Bereket Engida 2636fe2dfb chore: release v1.3.5-beta.4 v1.3.5-beta.4 2025-08-06 09:03:37 -07:00
f13c40492c 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-06 09:01:37 -07:00
Bereket Engida 721f983b12 chore: release v1.3.5-beta.3 v1.3.5-beta.3 2025-08-05 23:31:51 -07:00
Bereket Engida 89974a9e0c chore: upgrade better-call version 2025-08-05 22:37:35 -07:00