Commit Graph

3756 Commits

Author SHA1 Message Date
Bereket Engida
79fd214964 chore: release v1.3.0-beta.10 2025-07-18 20:54:55 -07:00
Bereket Engida
35dd92d9d2 Merge pull request #3460 from better-auth/v1.3
V1.3
2025-07-18 20:54:35 -07:00
Bereket Engida
ace859c381 chore: remove stripe warning 2025-07-18 20:49:38 -07:00
Bereket Engida
be6754df80 chore: fix jwt 2025-07-18 20:23:26 -07:00
Bereket Engida
a05686e304 chore: cleanup merge 2025-07-18 20:16:23 -07:00
Bereket Engida
5b1b242a88 Merge branch 'main' into v1.3 2025-07-18 20:09:14 -07:00
Bereket Engida
e6a067c46e chore: cleanup 2025-07-18 20:07:16 -07:00
Bereket Engida
b140d3933b chore: cleanup 2025-07-18 20:05:59 -07:00
Bereket Engida
fbdbfcb323 chore: cleanup 2025-07-18 20:05:59 -07:00
Bereket Engida
58f4b113dc Update packages/better-auth/src/plugins/mcp/index.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-18 19:57:20 -07:00
Bereket Engida
ba813865d5 Update packages/better-auth/src/api/routes/sign-up.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-18 19:57:10 -07:00
Bereket Engida
6cc9a5db53 chore: fix lockfile 2025-07-18 19:48:49 -07:00
Bereket Engida
ebde33b328 feat(admin): update user 2025-07-18 19:48:15 -07:00
rokitg
370e8515e5 feat: SIWE plugin (#2579)
* feat: first draft of SIWE plugin

* fix: run biome linter

* refactor(siwe): rename publicKey to walletAddress for clarity

 - Add ensName as an optional param from the client
 - Add emailDomainName to plugin options - fallback to getOrigin()
- Move schema to a separate file

* fix(siwe): update emailDomainName assignment to use nullish coalescing operator

* run biome linter

* fix(siwe): avatar field is not included in createUser call

* refactor(siwe): remove siwe dependency and implement nonce generation and message verification through plugin options

- Removed direct dependency on 'siwe' package.
- Introduced 'generateSiweNonce' and 'verifySiweMessage' as user functions
- Updated tests to reflect changes in nonce handling and message verification logic (WIP)

* feat: add anonymous flag to plugin options

* refactor(siwe): improve test coverage - anonymous flag, missing nonce & other edge cases

* feat(siwe): add checksum address validation using keccak256 + test case

* fix(siwe): refactor hashing utility to use @noble/hashes

* feat(siwe): enhance SIWE plugin with chainId support, strong typing, dedicated table for wallet adresses and more test coverage

* refactor(siwe): remove unused SIWE interfaces

* fix(siwe): PR review issues

* fix(siwe): rename const "siweClientPlugin" to "siweClient" for simplicity

* feat(siwe): add docs

* chore: fix lock file

* fix: account linking & code formatting

* run pnpm lint

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-18 19:21:55 -07:00
Dagmawi Babi
a9e099775b fix(stripe): prevent duplicate customers (#3459)
* prevent duplicate stripe customer

* prevent duplicate stripe customer
2025-07-18 19:13:50 -07:00
KinfeMichael Tariku
1a1594d7f9 feat: afterEmailVerification callback (#3046)
* fix: callback to run after successful email verification

* lint

* update

* chore: update

* callback label
2025-07-18 19:10:19 -07:00
KinfeMichael Tariku
26391344f4 fix: global onSuccess callback hook not being called (#3032)
* fix: bearer override headers

* fix: onSuccess called from global authClient

* clean up

* maken the default global onSuccess a plugin instead

* chore: revert disable default fetch plugins

* lint

* remove onsuccess call

* revert to the hook plugin

* lint

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-07-18 19:09:30 -07:00
KinfeMichael Tariku
68feed668f docs: add custom table name ref on jwks (#2996) 2025-07-18 19:05:34 -07:00
KinfeMichael Tariku
a342b61357 feat: onPasswordReset callback (#2994)
* fix: otp value and tries separator

* feat: onPasswordReset callback

* lint

* clean up

* test

* docs
2025-07-18 19:04:36 -07:00
KinfeMichael Tariku
3178c5fad8 docs: getting session from the context in db hook (#3051)
* docs: getting session from the context in db hook

* update

* update
2025-07-18 19:03:41 -07:00
KinfeMichael Tariku
1b2f383350 feat(sso): configurable provider limit (#3433) 2025-07-18 18:58:14 -07:00
Maxwell
6515275a1d fix(admin): pass ctx to user create db hook (#2521) 2025-07-18 18:56:24 -07:00
Maxwell
7cc68b82f6 docs(faq): remove name, image, or email fields (#2688) 2025-07-18 18:54:26 -07:00
Maxwell
e954c93361 docs(typescript): warn ts inference error regarding tsconfig (#3055) 2025-07-18 18:53:57 -07:00
Maxwell
93698afd45 feat(organization): additionalFields for org, member, invitation & team (#3447)
* feat(org): additionalFields for org, member, invitation & team

* fix: tests

* chore: lint

* add: docs

* update(docs): improve wording

* feat: support client side inference

* chore: lint
2025-07-18 17:31:17 -07:00
Pantotone
3cd2943135 fix(social-providers): twitch provider not returning if email is valid (#3453) 2025-07-18 16:48:32 -07:00
Robi
5a24661fb6 refactor: pass both building and getRequestEvent from outside of library (#3449)
* refactor: Pass both building and getRequestEvent from outside of library
- Removes the need for importing from virtual modules at the expense of more user boilerplate

* chore: add Svelte and related dependencies to externals

* chore: lint

* refactor(docs): update SvelteKit integration docs with new building and getRequestEvent usage
2025-07-18 15:00:15 -07:00
Bereket Engida
7d03460470 feat: add an option to encrypt oauth tokens by default (#2552)
* feat: add an option to encrypt tokens by default

* feat(auth): add OAuth token encryption support

* refactor(auth): streamline token handling in OAuth callback by utilizing setTokenUtil

* refactor(auth): replace direct token handling with setTokenUtil for improved clarity and maintainability

* refactor(auth): unify token handling by utilizing setTokenUtil for access and refresh tokens

* docs(auth): enhance documentation for OAuth token encryption, clarifying security risks and benefits

* chore: cleanup

* update test
2025-07-18 14:00:48 -07:00
Bereket Engida
847fc9bfda feat(drizzle): support camel case schema generation (#2550) 2025-07-18 10:39:16 -07:00
Mohamad Mohebifar
324815a3fb chore(oidc-provider): update client validation logic for public and confidential clients (#3438) 2025-07-18 10:36:04 -07:00
KinfeMichael Tariku
5242d82aa8 fix(open-api): include additional fields (#3439)
* open api additional field

* lint

* lint

* falsy value

* deprecated zodschema with zodtype
2025-07-18 10:10:17 -07:00
Alessandro Bortolin
41fb4d15a8 feat(username): add custom username normalization option (#3412)
* feat(username): add custom username normalization option

* add transformer

* handle nullish values

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-18 10:03:28 -07:00
KinfeMichael Tariku
f521d7bf11 docs: organization option for cancelPendingInvitationsOnReInvite (#3440)
* docs: organization option for canceling on reinvite

* default val

* lint
2025-07-18 10:02:46 -07:00
Fraol Lemecha
577ad2a97f fix(organization): allow org owner to update their own roles (#3426)
* fix: allow org owner to update their own roles

* fix(org): move the `is creator` check to the `hasPermissions` function to make it more reusable
2025-07-18 10:02:24 -07:00
KinfeMichael Tariku
d66c6c935d fix(sso): saml redirection (#3343)
* saml redirection

* loh

* lint

* dashboard

* lint

* test

* test

* function based mock idp

* redirection and callbacks

* console

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2025-07-17 21:58:12 -07:00
Dagmawi Babi
4c9479ee2b docs: automatic-tax-collection (#3415) 2025-07-17 21:09:42 -07:00
KinfeMichael Tariku
ce75d25c4f fix(stripe): allow upgrading incomplete subscriptions (#2930)
* fix: subscription upgrade

* lint
2025-07-17 21:08:50 -07:00
Maxwell
322906802f chore: lint (#3437) 2025-07-17 16:40:34 -07:00
Maxwell
d73e7b8527 chore: fix type issue (#3436) 2025-07-17 16:33:50 -07:00
Maxwell
1ed38cd28b feat(docs): APIMethod, documents all server & client auth examples (#2577) 2025-07-17 16:20:10 -07:00
KinfeMichael Tariku
8bcc352856 docs: fix request lifecycle hooks example (#3434) 2025-07-17 15:48:06 -07:00
Bereket Engida
8fa4c9ce7e feat(stripe): pass context obejct to stripe plugin callbacks (#2990)
* feat(stripe): pass context obejct to stripe plugin callbacks

* cleanup

* cleanup

* cleanup

* chore: lint

* fix: tests

---------

Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2025-07-17 14:48:11 -07:00
KinfeMichael Tariku
c27ff747ce docs: callout on getSessionCookies on security check (#3110)
* docs: add callout for getSessionCookies

* clean up

* clean up
2025-07-17 14:47:30 -07:00
Kinfe123
78e384e3f5 fix: sso typecheck 2025-07-17 23:32:47 +03:00
Kinfe123
5508b02d77 fix: zodv4 migration leftover due to conflict 2025-07-17 23:23:58 +03:00
Bereket Engida
ea0fcdab70 Revert "feat(social-providers): add Faceit Social Provider (#3140)" (#3432)
This reverts commit 8792717b4b.
2025-07-17 10:11:45 -07:00
Matt Russell
8792717b4b feat(social-providers): add Faceit Social Provider (#3140)
* create faceit provider

* include new faceit provider

* updating docs to include faceit

* Update docs/content/docs/authentication/faceit.mdx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Update docs/components/builder/social-provider.tsx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* formatting

* formatting

* formatting

* Update documentation

Updated to include callout about Faceit's Redirect URL requirements

* fix: docs

* chore: cleanup

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: ping-maxwell <maxwell.multinite@gmail.com>
2025-07-17 10:10:07 -07:00
Bereket Engida
85d5c6c720 chore: release v1.3.0-beta.9 2025-07-17 10:08:50 -07:00
Bereket Engida
56bd676534 Merge branch 'main' into v1.3 2025-07-17 10:08:46 -07:00
KinfeMichael Tariku
15452a5402 fix: mysql foreign key constraints on generate (#2828)
* fix: mysql foreign key constraints

* lint

* clean up

* clean up

* lint
2025-07-17 09:58:52 -07:00