Commit Graph
42 Commits
Author SHA1 Message Date
Alex YangandGitHub af8a684381 chore: remove deprecated package (#4242) 2025-08-26 15:52:00 -07:00
Alex YangandGitHub 127ad5d326 chore: bump next.js (#4135) 2025-08-21 15:30:53 -07:00
Alex YangandGitHub fc8a25abd0 feat: support node:sqlite (#3869) 2025-08-20 12:57:30 -07:00
Bereket Engida 6675691efe chore: fix demo typechecking 2025-08-10 23:48:34 -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
ac6baba2a0 chore: add changesets (#3557)
* chore: consistent package names

* chore: init changesets

* chore: update contribution doc to include generating a changeset

* chore: configure all better auth packages to always have the same version number

* chore: update nextjs demo package name

* chore(changesets): ignore all private packages

* chore(changesets): check for changesets in CI

* chore(changesets): install chagesets cli

* chore(changesets): use orgin as main

* chore(changesets): fix typo

* chore(changesets): check for changes since main in ci

* chore(changesets): check for changes since main in ci with the correct command

* chore(changesets): check against `origin/main`

* chore(changesets): checking for changesets should be the last action

* chore(changesets): run changelog check after stoping the docker containers

* chore(changesets): run changelog check after building

* chore(changesets): run changelog check after starting docker compose

* chore(changesets): run changelog check after linting

* chore(changesets): run changelog check after testing

* Revert "chore(changesets): run changelog check after testing"

This reverts commit 6dc000f78d.

* chore: export siwe in better-auth/plugins (#3596)

The docs were using this import path, yet `siwe` wasn't exported there. This PR fixes this.

* chore: fix cookies test

* docs: make client-side vs. server-side explicit (#3603)

* docs: fix broken link to ERC-4361 in siwe docs (#3604)

* fix(jwt): ensure alg is added to the jwks when generating via /token endpoint (#3601)

* fix: Ensure alg is added to the jwks when generating via /token endpoint

* chore: resolve linting issues

* chore(example): fix SvelteKit example (#1742)

* refactor: upgrade Svelte, Vite and related packages

* refactor: replace no longer supported `body.callbackURL` with `onSuccess`

* fix: add missing `svelte-kit sync` on `prepare`

* fix: add missing `import`s

* chore(svelte-kit-example): show message & redirect to index after sign up

* chore: add npm script to migrate database

* doc: add more commands to set up

* chore: explicitly disable verification email on sign up

The example does not work if you set `sendOnSignUp: true` without setting up the email server.

* refactor(svelte-kit-example): add type for hooks

* chore(svelte-kit-example): redirect to sign in page if users open dashboard without log in

* chore: diable some rules for svelte-kit-example due to Biome's limited Svelte support

* style: fix format

* chore: update pnpm-lock.yaml

* chore: fix lock file

---------

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

* fix: make sveltekit plugin ALS-agnostic (#3533)

* svelte cookie

* udpate

* update

* update

* update

* chore(cli): update zod to v4 (#3618)

* fix: correct typo in freeTrial variable name in Stripe integration

* chore: fix lock file

* chore: add changeset for typo fix in freeTrial

---------

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
Co-authored-by: Justin <127172022+jl33-ai@users.noreply.github.com>
Co-authored-by: Elliott Minns <elliott.minns@pm.me>
Co-authored-by: Jumpei Ogawa <git@phanective.org>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-07-25 20:39:44 -07:00
Bereket Engida fd727e515d chore: update kysley to 0.28.2 2025-05-31 09:14:05 -07:00
KinfeMichael TarikuandGitHub 06ca627a6a fix: demo build & upgrades (#2848) 2025-05-31 00:22:02 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
128cca8151 chore(deps): bump next from 15.2.1 to 15.2.3 (#1982)
Bumps [next](https://github.com/vercel/next.js) from 15.2.1 to 15.2.3.
- [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.2.1...v15.2.3)

---
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-03-26 19:33:05 +03:00
Bereket Engida 58889fece5 chore: update dependencies and lock file 2025-03-09 14:04:47 +03:00
Bereket Engida dd0cc21a6a chore: upgrade Shiki to v1.29.2 and update documentation 2025-03-05 00:06:02 +03:00
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 EngidaandGitHub 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 687913773a chore: improve build configuration and add tsc type generation 2025-02-28 11:14:10 +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 7ba1af2ff9 Merge branch 'main' into v1.2 2025-02-27 14:20:23 +03:00
Bereket EngidaandGitHub 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 MishraandGitHub 419a86a773 chore: fix type exports and sync dep versions to improve build times (#1528) 2025-02-21 16:26:50 +03:00
Bereket EngidaandGitHub 46dfc078c0 feat: move to better call version 1 (#1402) 2025-02-11 16:02:57 +03:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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
Bereket Engida bda473698f chore: override whatwg-url version 2024-12-09 00:37:45 +03:00
Bereket Engida 3678fa18bc chore: upgrade workspace deps 2024-12-07 11:39:22 +03:00
Bereket Engida f9a30c357d fix: mysql returning failing on update 2024-11-16 00:34:57 +03:00
Bereket Engida 96920a0cc7 demo: fix deployemnt 2024-11-05 12:20:21 +03:00
Bereket EngidaandGitHub cce28070ee feat: expo plugin (#375) 2024-11-01 09:24:14 +03:00
Bereket Engida 44ab168d27 fix: update user reverting default fields 2024-10-27 10:40:50 +03:00
Bereket Engida 371fad2411 chore: missing dep 2024-10-26 22:27:49 +03:00
Bereket Engida 1d577e7faf demo: fix deployment 2024-10-26 22:13:29 +03:00
Bereket Engida b3b2f5dd5c feat: infer trusted origins from env 2024-10-14 11:18:37 +03:00
Bereket Engida 7442fc1606 chore: upgrade demo nextjs version 2024-10-12 02:11:26 +03:00
Bereket Engida 4b36770eec chore: remove api base url log from client 2024-10-12 01:40:05 +03:00
Bereket EngidaandGitHub 3b3598aca9 fix: better logs on validation fail for oauth (#100)
* fix: better errors on phone number plugin

* fix: add validation log on oauth
2024-10-05 20:34:07 +03:00
Bereket Engida 1004d956a8 fix: github provider should infer redirect_uri 2024-10-05 17:22:01 +03:00
Bereket Engida db761d4358 fix: demo 2024-09-23 14:14:19 +03:00
Bereket Engida 7180fca3a1 feat: polish demo 2024-09-17 17:43:38 +03:00
Bereket Engida 444a40686b fix: possibling fix for libsql failing on demo #1 2024-09-17 12:39:35 +03:00
Bereket Engida ec6a58278b chore: tsup build 2024-09-17 12:06:30 +03:00
Bereket Engida bf729516bd chore: with env 2024-09-17 12:02:49 +03:00
Bereket Engida 044ba402cc fix: a bunch of fixes 2024-09-16 22:06:27 +03:00
Bereket Engida c945d1ba95 feat: demo 2024-09-16 13:53:41 +03:00