416 Commits

Author SHA1 Message Date
Bereket Engida
210c20eb65 refactor: migrate UI components to React 19 2025-03-04 20:29:25 +03:00
Bereket Engida
232f565cb7 chore: update React and TypeScript type definitions to version 19 2025-03-04 19:43:45 +03:00
Bereket Engida
b4583dd4cd chore: upgrade React and Next.js to latest versions 2025-03-04 19:42:41 +03:00
Bereket Engida
15f769645c docs: add Vercel Analytics 2025-03-01 23:57:20 +03:00
Bereket Engida
958d80fd86 docs(changelog): Update 1.2 release notes 2025-03-01 23:10:03 +03:00
Bereket Engida
7783935063 chore: downgrade fumadocs dependencies 2025-03-01 12:17:16 +03:00
Bereket Engida
a3592d9b66 chore: fix fumadocs deps 2025-03-01 12:11:44 +03:00
Bereket Engida
5643117240 chore: upgrade fumadocs to latest 2025-03-01 11:13:43 +03:00
Bereket Engida
68e0f46bdb docs: replace oslo with @better-auth/utils 2025-03-01 03:44:07 +03:00
Bereket Engida
532b81feab chore: upgrade Next.js to version 15.2.0 2025-03-01 02:55:35 +03:00
Bereket Engida
17d17deafc chore: update lockfile 2025-03-01 02:24:51 +03:00
Bereket Engida
86cbf70684 docs: v1.2 release notes (#1602) 2025-03-01 02:22:32 +03:00
Bereket Engida
4f56078e4b feat: stripe plugin to handle subscriptions and customers (#1588)
* init

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* feat(stripe): enable subscription support and update pricing plans

* feat(stripe): add Vitest configuration and initial tests for Stripe integration

* feat(stripe): implement setCookieToHeader function and update tests for customer creation and subscription handling

* feat(stripe): add seats support for subscriptions and update related endpoints

* feat(stripe): update schema to include unique referenceId, stripeSubscriptionId, and periodEnd fields

* wip docs

* docs

* docs: imporves

* fix(stripe): update webhook handlers to use correct subscription identification

* refactor(stripe): simplify customer management by storing Stripe customer ID directly on user

* chore(stripe): update package configuration and build setup

- Migrated from tsup to unbuild for build configuration
- Updated package.json with improved export and dependency management
- Added build configuration for better module support
- Removed tsup configuration file

* chore(stripe): update pnpm lockfile dependencies

- Moved `better-auth` from devDependencies to dependencies
- Added `zod` as a direct dependency
- Reorganized package dependencies in the lockfile

* feat(stripe): enhance subscription management and error handling

- Added toast error handling for subscription upgrades in the dashboard
- Updated Stripe price IDs for different plans
- Improved Stripe plugin documentation with beta warning and team subscription details
- Implemented intermediate redirect for checkout success to handle race conditions
- Added support for fetching and updating subscription status after checkout
- Fixed Next.js cookie handling and build configuration

* chore: update snapshot
2025-03-01 01:20:17 +03:00
Bereket Engida
bfacb8c180 chore: update dependencies and lock file versions 2025-03-01 00:56:07 +03:00
Maxwell
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
Bereket Engida
ee9a20219b chore: update lockfile 2025-02-28 11:15:39 +03:00
Bereket Engida
687913773a chore: improve build configuration and add tsc type generation 2025-02-28 11:14:10 +03:00
Bereket Engida
44352d7414 chore: migrate from tsup to unbuild 2025-02-28 09:45:39 +03:00
Bereket Engida
dca7fe539d chore: update lockfile 2025-02-27 20:29:53 +03:00
Bereket Engida
0237a73ef4 chore(deps): update @better-fetch/fetch to v1.1.15 in better-auth 2025-02-27 20:21:44 +03:00
Bereket Engida
c50be9d086 chore(deps): update @better-fetch/fetch to v1.1.15 across projects 2025-02-27 18:28:37 +03:00
Bereket Engida
69b1ed60fd chore: fix lockfile 2025-02-27 14:53:15 +03:00
Bereket Engida
7ba1af2ff9 Merge branch 'main' into v1.2 2025-02-27 14:20:23 +03:00
Bereket Engida
76bd9e8c0b chore(deps): upgrade fumadocs and related packages 2025-02-26 00:30:31 +03:00
Bereket Engida
dbfb050b4c chore(deps): bump zod to v3.24.2 2025-02-25 23:38:20 +03:00
Bereket Engida
c488e306ea docs: add llms.txt 2025-02-25 22:35:30 +03:00
Bereket Engida
f9b5d82641 chore: update lock file 2025-02-25 22:19:38 +03:00
Bereket Engida
16131fa8bd chore(deps): upgrade vitest to v3.0.7 and update related dependencies 2025-02-25 12:19:13 +03:00
Bereket Engida
1a3aff29a7 feat(client): add basePath option on createAuthClient (#1571)
* chore(dependencies): update @better-fetch/fetch to 1.1.15

* feat(client): add basePath option
2025-02-25 10:38:57 +03:00
Rahul Mishra
d7f66335f5 feat: add cloudflare worker basic tests (#1524)
* feat: add cloudflare worker basic tests

* chore: fix conflict

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-02-22 20:18:34 +03:00
Rahul Mishra
419a86a773 chore: fix type exports and sync dep versions to improve build times (#1528) 2025-02-21 16:26:50 +03:00
Bereket Engida
7fc8d803dd chore: update better-call to version 1.0.2 2025-02-21 10:12:48 +03:00
Bereket Engida
9cb72a5447 chore: update better-call dependency to use catalog versioning 2025-02-18 00:20:27 +03:00
Bereket Engida
d391a4853d chore: update better-call package to version 1.0.0-beta.6 and fix dependencies in lockfile 2025-02-15 13:18:29 +03:00
Bereket Engida
29f2efb1aa fix: update @better-fetch/fetch to version 1.1.14-beta.2 and clean up client options 2025-02-12 12:51:23 +03:00
Bereket Engida
46dfc078c0 feat: move to better call version 1 (#1402) 2025-02-11 16:02:57 +03:00
KinfeMichael Tariku
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
KinfeMichael Tariku
4748bcc498 fix(drizzle): drizzle adapter failing to return data on create and update when using mysql (#1358)
* fix: drizzle return id after mutation

* typo

* lint

* typo

* unwanted init var

* unwanted log

* flashing db

* logs

* test db url

* chore: comment

* lg

* lint

* pool and lint

* lock file
2025-02-05 23:54:50 +03:00
Bereket Engida
d7b4df613a feat: support mssql directly (#1255) 2025-01-22 10:49:49 +03:00
dependabot[bot]
64ed27855a chore(deps-dev): bump vite from 5.4.11 to 5.4.12 (#1260)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.11 to 5.4.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-22 07:54:27 +03:00
Bereket Engida
459609ccf7 chore: fix lock file 2025-01-16 12:41:25 +03:00
Bereket Engida
47344cf97b chore: upgrade expo example 2025-01-15 13:09:23 +03:00
Bereket Engida
cd04dc1412 chore: fix lock file 2025-01-14 20:55:42 +03:00
dependabot[bot]
017aefd9da chore(deps): bump next from 15.0.4 to 15.1.2 (#1116)
Bumps [next](https://github.com/vercel/next.js) from 15.0.4 to 15.1.2.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.0.4...v15.1.2)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 12:58:58 +03:00
dependabot[bot]
3422f8f49c chore(deps): bump svelte from 4.2.2 to 4.2.19 (#1170)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.2 to 4.2.19.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.19/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.19/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-12 15:03:03 +03:00
dependabot[bot]
3bec2f5129 chore(deps): bump astro from 4.16.17 to 4.16.18 (#955) 2025-01-12 15:02:50 +03:00
Multinite
95344a6784 Browser extensions example & guide (#1117)
* init: plasmo example project

* feat: add example for browser extension with BetterAuth

- Introduced a basic browser extension example using Plasmo framework and BetterAuth for authentication.
- Updated .env.example with BetterAuth configuration.
- Removed unnecessary GitHub workflow file for submitting to Web Store.
- Updated .gitignore to exclude local env files.
- Improved README documentation for the example.
- Included BetterAuth dependency in the package.json and updated the pnpm-lock.yaml.

* add: browser-extension example complete

* fix: content.tsx

* remove: browser-extension package as that isn't needed

* add: browser extension buide

* docs: added references in the guide to the examples code

* remove(dep): unused dependency

* refactor: package.json - remove author & update description

* wip

* chore: update lock file

* docs: update icon

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-01-04 18:14:59 +03:00
Stephen Zhou
93a7eb9064 fix: inconsistent better-call version (#1089) 2025-01-01 09:04:04 +03:00
Bereket Engida
93ba318e03 fix: zod version mismatch (#1068) 2024-12-30 13:48:55 +03:00
Bereket Engida
2b68569921 fix: upgrade better-auth utils and use subtle from better-auth utils (#1021) 2024-12-27 08:06:04 +03:00