* Add reference to ctx object in database hooks
This would have saved me time when I was look at implementing database hooks!
* typo
* chore: remove heading
---------
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
* Feature: Disable Implicit Signup for oauth implementations
- Added disableImplicitSignup option to social providers, generic oauth privders and sso plugin
- With disableImplicitSignup as true, signing in with a new email will fail
- Client may use requestSignUp as true to indicate they're explicitly asking for a sign up
- Added unit tests for social providers, generic oauth and sso plugin
* test: remove .only from OAuth2 test cases
* feat: add disableSignUp option for OAuth providers
* docs: add OAuth provider configuration options for signup control
* chore: fix api
* test: update OAuth test ports to 8081
---------
Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <bekacru@gmail.com>
* 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
* feat: teams in org
* conditional based expose team endpoint
* mod on adapter
* team org wip
* wip
* dynamic type inference
* add test
* feat: enhance organization adapter with default team creation and member timestamps
* feat: add maximum teams limit and prevent removal of last team
* refactor: remove outdated description from plugins documentation
* feat: add teams functionality with management and schema updates
* merge v1.2
* chore: cleanup
* fix(internal-adapter): safely handle lowercase email conversion
* feat(organization): enhance team and organization management tests and functionality
- Update organization and team tests with more comprehensive scenarios
- Modify team creation, invitation, and removal processes
- Improve access control and role management in organization tests
- Add support for multiple team and member management scenarios
* refactor(better-auth): remove unnecessary type extensions for User and Session
---------
Co-authored-by: Kinfe123 <kinfishtech@gmail.com>