* 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>
* 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>