Commit Graph

208 Commits

Author SHA1 Message Date
Anthony DePasquale
b36a1b83c8 GitHub 2025-04-13 14:11:08 +02:00
ririxi
cb900f9594 feat(organization): support multiple permissions check (#2227)
* feat: remove the artificial resource limit so that code can check

Also change `permission` to `permissions` (clearer for end user). `permission` is left for backwards compatibility.

* docs: add examples for multiple perms checking

* refactor: check `permissions` first, then legacy one

* feat: use union types for `permission` & `permissions`

* fix: properly use union types

* fix: remove accidental `@deprecated` comment

* chore: lint

* fix test

* chore: add oneTimeToken plugin to client barrel exports (#2224)

* docs(expo): add id token usage

* feat(oauth2): override user info on provider sign-in (#2148)

* feat(oauth2): override user info on provider sign-in

* improve email verification handling

* resolve mrge

* fix(sso): update overrideUserInfo handling to use provider configuration

* fix param

* chore: change plugin interface middleware type (#2195)

* fix: delete from session table when stopImpersonate called (#2230)

* chore: fix active organization inferred type

* chore: fix admin test

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
Co-authored-by: Wade Fletcher <3798059+wadefletch@users.noreply.github.com>
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-04-12 22:00:58 +03:00
dependabot[bot]
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
KinfeMichael Tariku
918b22906e chore(demo): add readme (#2004) 2025-03-26 09:49:43 +03:00
Brian Cooper
6b8da0e0f7 chore(demo): remove extra = from env (#1851) 2025-03-17 19:03:27 +03:00
Bereket Engida
58889fece5 chore: update dependencies and lock file 2025-03-09 14:04:47 +03:00
Bereket Engida
b5f638ca45 docs: upgrade to tailwind v4, react 19, fuma docs 15 (#1735) 2025-03-08 19:33:31 +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
68c108ca85 demo(refactor): remove unnecessary ref props 2025-03-04 20:55:46 +03:00
Bereket Engida
9d8bbb7471 chore: lint 2025-03-04 20:31:58 +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 Engida
c1216a988d demo: add impersonation stop button and admin user configuration 2025-03-04 14:33:04 +03:00
Bereket Engida
0194b50e23 refactor(demo): change database configuration 2025-03-04 10:12:56 +03:00
Bereket Engida
23e3ce296b demo: use the default BA sign-in/sign-up components 2025-03-04 10:06:15 +03:00
Bereket Engida
16f082c014 demo: remove empty string as a fallback img src 2025-03-04 08:43:36 +03:00
Bereket Engida
2704f22dee fix(stripe): cancel should properly apply for immediate trail cancels 2025-03-03 19:44:53 +03:00
Bereket Engida
07d32ac479 chore: update demo .env.example 2025-03-03 11:31:35 +03:00
Bereket Engida
4ec68150d7 chore: lint 2025-03-03 11:18:10 +03:00
Bereket Engida
ed2c7ab84b chore: fix docs highlighting 2025-03-02 21:00:35 +03:00
Bereket Engida
dab0c80384 docs: remove unused schema from stripe docs 2025-03-02 15:16:28 +03:00
Bereket Engida
a3c5ac8233 demo: use turso by default 2025-03-02 13:37:32 +03:00
Bereket Engida
1c16655aba fix(stripe): update subscription webhook handling should use customer id as a fallback 2025-03-02 13:36:51 +03:00
Bereket Engida
1c91294e23 fix(stripe): improve subscription cancellation handling and add callback endpoint 2025-03-02 11:40:01 +03:00
Bereket Engida
2b768c9df7 demo: fix type errors 2025-03-01 02:51:53 +03:00
Bereket Engida
0c7a098e95 fix(organization): improve type inference and session handling 2025-03-01 02:36:52 +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
687913773a chore: improve build configuration and add tsc type generation 2025-02-28 11:14:10 +03:00
Mohamad Malek Alkhodary
20965ff851 docs: fix file import typo (#1592) 2025-02-28 07:27:18 +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 Engida
55a3cd3c47 demo: client only auth demo 2025-02-27 10:38:11 +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
56b0465e4e docs: update getSessionCookie import in demo and docs (#1534) 2025-02-22 10:28:46 +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
e3faaf031c chore: lint 2025-02-17 08:24:12 +03:00
rohan nair
adf8d6dcda demo: confirm password validation (#1453)
* fix: Next JS demo confirm password validation

* removing unnecessary imports
2025-02-17 08:24:12 +03:00
Bereket Engida
8a08ae9eee feat(one-tap): improve Google One Tap integration with JWT verification and improved prompt handling (#1452)
* fix(auth): use options.baseURL instead of ctx.baseURL on trusted origins

* feat(one-tap):  improve Google One Tap integration with JWT verification and improved prompt handling

* feat(one-tap): add One Tap component for user authentication and fix prompt options
2025-02-17 08:23:56 +03:00
Bereket Engida
03fb6b2dfa chore: lint 2025-02-16 16:10:02 +03:00
rohan nair
524d1c0375 demo: confirm password validation (#1453)
* fix: Next JS demo confirm password validation

* removing unnecessary imports
2025-02-16 16:09:20 +03:00
Bereket Engida
8ff196ec0d feat(one-tap): improve Google One Tap integration with JWT verification and improved prompt handling (#1452)
* fix(auth): use options.baseURL instead of ctx.baseURL on trusted origins

* feat(one-tap):  improve Google One Tap integration with JWT verification and improved prompt handling

* feat(one-tap): add One Tap component for user authentication and fix prompt options
2025-02-15 11:56:06 +03:00
Bereket Engida
2c81e5bf8f Merge branch 'main' into v1.2 2025-02-14 15:17:41 +03:00
Bereket Engida
b26f8334b3 feat(organization): leave organization (#1239) 2025-02-14 13:12:15 +03:00
Bereket Engida
46dfc078c0 feat: move to better call version 1 (#1402) 2025-02-11 16:02:57 +03:00
Bereket Engida
2eca1daf4f feat: add cookie helper for middlewares (#1275) 2025-02-04 10:14:03 +03:00
Bereket Engida
2da631585c fix(passkey): use options base url for rpID 2025-01-30 13:27:48 +03:00
Stephen Zhou
32db33a260 docs: pass token in reset-password (#1237) 2025-01-20 11:00:19 +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