Commit Graph
53 Commits
Author SHA1 Message Date
Gustavo Valverde 73d6f80e5b chore(sync): merge main into next 2026-08-11 14:14:49 -04:00
TaesuandGitHub b8077b74ef fix(cli): align packages with running CLI version (#10743) 2026-08-10 16:47:54 +00:00
Gustavo Valverde 558d2de0a7 chore(sync): merge main into next 2026-07-22 10:39:55 -04:00
0f2cc1b33b fix(cli): recover when auth generate's config self-imports its own output (#10302)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2026-07-09 00:29:41 +00:00
Paolo RicciutiandGitHub 6f3ba45639 fix: stub SvelteKit's explicit-environment-variables modules (#10221) 2026-07-07 17:31:29 +00:00
Gustavo Valverde 4bcda56649 chore: resolve 10178 main-to-next sync conflicts
Merges origin/main into origin/next for the replacement sync PR and records the hand-resolved package metadata, changelog, OAuth/social provider, admin, SIWE, SCIM, SSO, username, rate-limiter, and next-owned MCP/OIDC provider conflicts.
2026-06-26 06:33:24 +01:00
452bd03f74 fix(cli): increase generated BETTER_AUTH_SECRET length from 16 to 32 … (#10186)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-06-24 21:52:53 +00:00
Gustavo Valverde 381fc6cfaf chore: sync main to next 2026-06-11 18:18:13 -07:00
6987c628f1 fix(cli): resolve SvelteKit, Vite asset, and Cloudflare virtual-module imports (#9834)
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2026-06-11 01:06:43 +00:00
Pooya ParsaandGitHub 12a4128494 refactor(cli): leverage c12 v4 resolveModule for auth config loading (#9477) 2026-05-07 13:56:37 -07:00
TaesuandGitHub 4673c6d83c fix(cli): handle extends and mid-path wildcards in tsconfig paths (#9032) 2026-04-10 16:26:53 +00:00
Gustavo ValverdeandGitHub e089ce127d chore(knip): fix CI blind spots and remove dead code (#8888) 2026-04-02 19:28:30 +00:00
Alex YangandGitHub b5e2203f14 fix(cli): resolve path aliases from extended tsconfig files (#8520) 2026-03-09 18:03:46 +00:00
Alex YangandGitHub 00b543ac06 feat(cli): add upgrade command to update better-auth packages (#8204) 2026-02-28 02:35:35 +00:00
Bereket Engida d79c0db73b Revert "feat(cli): use vite to load auth config when we detect a vite project"
This reverts commit 22d238b4bf.
2026-02-19 23:41:28 -08:00
Bereket Engida 22d238b4bf feat(cli): use vite to load auth config when we detect a vite project 2026-02-19 23:18:09 -08:00
Joél SolanoandGitHub cf8322707c feat: auth cli (#7964) 2026-02-15 07:44:50 +00:00
Alex YangandGitHub 3b2b9834c5 fix(cli): add .env.local to dotenv (#7831) 2026-02-07 00:14:55 +00:00
jyc.devandGitHub b7d50de695 fix: check jsconfig.json in getPathAliases (#7650) 2026-01-28 00:56:38 +00:00
Alex YangandGitHub 5471295282 fix(cli): cmd info --json unexpected exit with 1 (#6949) 2025-12-23 18:39:55 +08:00
Jonathan SaminesandGitHub 9233783428 chore: remove unused variables (#6647) 2025-12-09 13:51:35 -08:00
Jonathan SaminesandGitHub 5436b95ada chore: remove unused exports and export types (#6513) 2025-12-04 22:30:15 -08:00
Alex YangandGitHub 47044905d4 chore(cli): reduce better-auth imports (#6507) 2025-12-03 21:17:46 -08:00
Alex YangandGitHub 123bdee671 fix(cli): compatibility for Prisma v7 in schema generation (#6459) 2025-12-02 11:27:36 -08:00
Alex YangandGitHub 5cbe0a58e7 chore: enforce imports to use node: protocol (#6461) 2025-12-01 16:08:32 -08:00
Neeraj DalalandGitHub 7cfc0c2597 chore(extend): cli utils get-config possible paths (#6300) 2025-11-26 08:25:21 +00:00
MaxwellandGitHub 519efddef2 feat(cli): check /auth for auth.ts (#6273) 2025-11-24 11:49:11 -08:00
Christian Bager Bach HoumannandGitHub cf050967e5 feat(cli): support Cloudflare Workers virtual module imports (#5559) 2025-10-28 03:15:04 +00:00
Alex YangandGitHub 938c2a7c31 chore: lint enable organize import (#5556) 2025-10-24 19:05:09 +00:00
Alex YangandGitHub 70d4dc609a chore: enable lint rule noTsIgnore (#4296) 2025-08-28 15:09:47 -07:00
Alex YangandGitHub 557dc39c32 chore: remove unused deps (#4227) 2025-08-25 17:48:13 -07:00
Alex YangandGitHub bb634a0f5c fix(cli): generate throws error with default export (#4113) 2025-08-20 16:25:32 -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
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
KinfeMichael TarikuandGitHub e75c67accc fix: resolve custom ts config path 2025-05-03 21:05:12 +03:00
Anthony DePasquale 25d517e99e TypeScript 2025-04-13 14:11:08 +02:00
c66fdc9129 feat: init Better Auth CLI command (#1427)
* update: init command now can do plugins & DB generation

* fix: revert nextjs auth.ts file

* add: pacakge @clack/prompts for better CLI experience

* update: moved from prompts to clack/prompts

* add: functionality to hide logs coming from `getConfig`

* remove: hide logs functionality

* chore: remove unneeded import

* add: install dependencies feature

* add: functionality to update/install better-auth

* fix: install/upgrade better-auth deps

* add: spinner during version checking

* fix: nextCookies plugin import path

* fix: oidc plugin contents

* update: emoji-ify

* fix: mysql code

* refactor: logging/prompt style

* update: mysql use 1 ENV

* fix: msql, revert back to old code

* fix: mysql connectionUri, again

* fix: missing sqlite env

* fix: added back the plugins multiselect

* update: outro text

* add: ENV generation for `BETTER_AUTH_URL` & `BETTER_AUTH_SECRET`

* update: intro & outro text, plus some ENV default values

* remove: name from cli options

* fix: made index.ts's getPackageInfo not crash the program entirely if ENOENT

* update: prompt to get auth config dir if not auto found

* fix: create auth config file

* add: log to state the new file that's being created

* update: outro text

* fix: unneeded diff display

* add: auth-client creator

* fix: auth-client plugins are now grouped

* fix: auth-client import path bugs

* fix: invalid client plugins

* fix: oneTap client plugin contents

* update: allow getConfig to throw errors instead of logging

* fix: auth config error logging

* WIP: auth client code gen

* chore: linter

* update: now supports auth client generation

* WIP: grouped imports

* remove: functionality to update existing auth code

* add: functionality to update tsconfig

* fix: tsconfig not saving new updated values

* fix: handle missing .env files in init process

* update: made `no env file found` error message use `outro` for better logging experience

* fix: removed `ms` at the end as the `formatMilliseconds` fn already handles that

* update: move ENV code after plugins initialization

* chore: update pnpm lockfile and remove deprecated package note

* chore: lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-03-01 00:33:14 +03:00
Arda SoyturkandGitHub b9ccfff628 feat(cli): add support for auth.server.ts (#1456) 2025-02-20 21:54:22 +03:00
1ceed9c336 chore(cli): pkg info and utils on CLI tools (#1364)
---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-06 11:05:08 +03:00
Bereket EngidaandGitHub db4b4fce40 feat: support .js config (#1256) 2025-01-21 14:19:34 +03:00
Bereket Engida 9f2e45b8c7 chore: cleanup 2025-01-06 14:30:39 +03:00
KesvaLandGitHub 74fff8a946 fix: get-config paths for missing slash for /lib/server (#919) 2024-12-17 08:55:45 +03:00
Bereket Engida 7076f7cf56 chore: lint 2024-12-16 13:18:57 +03:00
Bereket Engida 7ff86949e3 fix(cli): improve cli message for server-only package blocking execution 2024-12-16 13:08:23 +03:00
Bereket Engida b58c17b621 feat(cli): cli should look for auth config on 2024-11-23 23:43:22 +03:00
Bereket Engida 4b92d71d64 chore: update snapshot 2024-11-23 03:29:54 +03:00
Bereket EngidaandGitHub d3506e1f44 fix: CLI fails on trailing commas when reading tsconfig (#607) 2024-11-20 22:42:45 +03:00
ThorbenandGitHub a3867bdbba feat: allow users to pass custom logger 2024-11-18 09:58:09 +03:00
Jonathan WilkeandGitHub c2d42bb61d chore: output resolved path in CLI when config couldn't be read (#518) 2024-11-13 22:24:20 +03:00
Jonathan WilkeandGitHub c322fb2fc8 chore: output error log (#519) 2024-11-13 22:24:02 +03:00