Commit Graph

20 Commits

Author SHA1 Message Date
Bereket Engida
1c91294e23 fix(stripe): improve subscription cancellation handling and add callback endpoint 2025-03-02 11:40:01 +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
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
b26f8334b3 feat(organization): leave organization (#1239) 2025-02-14 13:12:15 +03:00
Bereket Engida
4555f92063 feat: OIDC Plugin (#765) 2024-12-21 02:12:04 +03:00
Bereket Engida
d70d2c9f9a chore: remove custom session from demo 2024-11-27 17:02:34 +03:00
Bereket Engida
931b4b4b90 demo: update types 2024-11-23 04:11:50 +03:00
Bereket Engida
f5f60a23e8 feat: custom session response (#579) 2024-11-19 21:16:23 +03:00
Bereket Engida
5e4703870f chore: fix examples 2024-11-13 20:06:29 +03:00
Bereket Engida
f65522487e chore: fix examples 2024-11-13 20:06:29 +03:00
Bereket Engida
2ba1584736 feat: one tap (#419) 2024-11-05 01:59:31 +03:00
Bereket Engida
1c7606d61e refactor: remove user prefix from endpoints (#358) 2024-10-28 12:33:59 +03:00
Bereket Engida
05fd1e072d feat: multi session plugin (#204) 2024-10-18 17:27:37 +03:00
Bereket Engida
7442fc1606 chore: upgrade demo nextjs version 2024-10-12 02:11:26 +03:00
Bereket Engida
33223fd575 feat: admin plugin (#117) 2024-10-11 21:16:21 +03:00
Bereket Engida
6c9782202f fix: add rate limter error 2024-09-24 02:41:01 +03:00
Bereket Engida
350492790d demo: fix types 2024-09-23 15:20:02 +03:00
Bereket Engida
86865abc62 chore: move types to 2024-09-23 15:17:57 +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