Commit Graph

3613 Commits

Author SHA1 Message Date
Maxwell
e1579dc5d1 docs: add info about refresh tokens for Google & Github (#3305) 2025-07-08 08:32:45 -07:00
KinfeMichael Tariku
c483fa14db fix(two-factor): otp separator mismatch (#2989)
* fix: otp value and tries separator

* Update packages/better-auth/src/plugins/two-factor/otp/index.ts

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

* lint

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-07 13:10:13 -07:00
KinfeMichael Tariku
5e36e37d73 chore: export options on the plugin (#2681)
* docs: typo in admin plugin

* fix: export options

* fix

* import

* import

* lint

* import

* lint

* fix: cast options to any

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-07 13:03:04 -07:00
KinfeMichael Tariku
ba5f13c58a fix(expo): expo plugin should import types from the types path (#2526)
* fix: plugin import type

* lint

* expo type compat

* expo type compat

* type import

* plugin import

* type compat
2025-07-07 12:54:26 -07:00
matt
6ef5104b13 fix(two-factor): getting totp uri shouldn't require twoFactor enabled (#2620) 2025-07-07 12:53:17 -07:00
Kyle
0989ebb13f fix: exclude current user from username update checks (#2612)
* fix: exclude current user from username update checks

* fix lint

* explicitly check for the session

* fix test
2025-07-07 12:33:39 -07:00
Erik Müller
b185143b83 fix: import setCookie from tanstack start core package (#3284) 2025-07-07 07:58:30 -07:00
Maxwell
32d838e37c fix(admin): throw an error if user id in /remove-user is invalid (#3271) 2025-07-06 13:37:02 -07:00
jyc.dev
2de1cd27f6 docs(community-adapters): Remult (#3275)
* Adding @nerdfolio/remult-better-auth

* add some spaces
2025-07-06 09:42:43 -07:00
Inas Luthfi
2734d07e88 fix(origin-check): support protocol-specific wildcard trusted origins (#3155)
- Fix wildcard matching to properly handle protocol-specific patterns
- Protocol-specific wildcards (https://*.example.com) now match full origin
- Host-only wildcards (*.example.com) continue to match just the host
- Add comprehensive test coverage for protocol-specific scenarios
- Prevents security vulnerability where HTTP origins could match HTTPS wildcards
2025-07-05 14:28:13 -07:00
Jack
57baf02f84 feat(anonymous): update generateName to support returning a promise (#3259) 2025-07-04 11:48:00 -07:00
Bereket Engida
e82bcb719c fix(phone-number): verification value should be removed after successful password reset (#3261)
* fix: should remove verification value after succesful reset password flow

* add test
2025-07-04 10:49:43 -07:00
Dominik K.
93a5a84851 chore: update expo & cli package.json and readme (#2893)
* fix: expo package file

* fix: add cli and expo readme

* docs: updated expo plugin readme

* docs(expo): add missing package fields

* docs(cli): improve readme and package file

* baseURL config

* add keywords

* Update packages/cli/README.md

Co-authored-by: Taqib Ibrahim <Taqib.ibrahim@gmail.com>

---------

Co-authored-by: Taqib <taqib.ibrahim@gmail.com>
Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
2025-07-03 15:33:04 -07:00
Mart van de Ven
fb303855ee docs: correct the number of fields required in the username migration (#3254) 2025-07-03 10:09:27 -07:00
Shubham
379b5d872c fix(mongodb): honor custom generateId in create (#3178) 2025-07-02 14:11:08 -07:00
KinfeMichael Tariku
bb47937be5 chore: fix react dual reference and update react types to 19.1.0 (#3246)
* react-dual

* chore: update react types

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-02 14:00:29 -07:00
Maxwell
b08d1d2099 fix(organization): list-teams endpoint returns unknown (#3243) 2025-07-02 13:58:24 -07:00
KinfeMichael Tariku
6444c0498e fix(cli): format drizzle schema output (#3244) 2025-07-02 13:45:03 -07:00
George Gebbett
e24c859c64 docs: correct stripe capitalization (#3247) 2025-07-02 13:12:13 -07:00
Shubham
5ead4ab2f2 fix(db): add varchar to postgres string mapping and normalize type comparison (#3225) 2025-07-01 10:10:01 -07:00
Bereket Engida
f2bd3ba864 docs: update reach out email 2025-07-01 10:05:23 -07:00
Shubham
74311b4a08 fix(email-otp): throw USER_NOT_FOUND when sign-up is disabled (#3223)
* email-otp: throw USER_NOT_FOUND when sign-up is disabled

* formatting
2025-07-01 08:58:52 -07:00
Maxwell
8cbc22bcaf docs: fix changelogs not displaying user PFP (#3234) 2025-07-01 08:55:22 -07:00
Maxwell
6bbc86eb8a docs(community-adapters): recommend the official convex version (#3232) 2025-07-01 08:54:57 -07:00
Maxwell
6beac425dd fix(two-factor): incorrect default OTP period & fix incorrect docs (#3231)
* docs(2fa): fix incorrect period

* fix: default period is 3 minutes

* Update packages/better-auth/src/plugins/two-factor/index.ts

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

* chore: lint

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-01 08:54:26 -07:00
Abbas
12e15cce41 fix(drizzle-cli): use serial as PK when useNumberId is enabled (#3228) 2025-06-30 18:36:23 -07:00
Maxwell
7c4719ed77 fix(api-key): incorrect rate limit error status code (#3213)
* fix(api-key): improve error statuses

* Update packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts

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

* fix: tests

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-28 23:10:53 -07:00
Bereket Engida
e7eed8c848 docs: update banner 2025-06-28 00:45:14 -07:00
Bereket Engida
f8e2b693b9 chore: release v1.2.12 v1.2.12 2025-06-27 23:41:11 -07:00
Bereket Engida
eb651594af chore: release v1.2.12 2025-06-27 23:40:33 -07:00
Bereket Engida
afc7e2fb85 chore: release v1.2.12 2025-06-27 23:37:40 -07:00
Maxwell
0b03431eae fix(create-adapter): doesn't work with mongoAdapter (#3203)
* fix(create-adapter): doesn't work with monogAdapter

In Better-auth, we do not allow customising IDs, so nothing takes into account of "different ids".
However MongoDB requires ids to be different.

The `getDefaultFieldName` fn in the create-adapter doesn't take into account that IDs from Mongo are not the same as the normal `id`. This is a patch fix until proper resolve is implemented.

* chore: lint

* chore: cleanup
2025-06-27 23:24:46 -07:00
Maxwell
de39373415 chore: add tests for create-adapter to not include an id when generate id is disabled (#2423)
* add: tests for create-adapter to not include an id when generate id is disabled

* chore: minor improvements
2025-06-27 22:55:48 -07:00
Maxwell
557793b183 docs(organization): update description for getActiveMember function (#2555)
Refined the description to clearly convey that the function retrieves member details of the active organization.
2025-06-27 22:55:23 -07:00
Maxwell
c13d1867a8 fix(create-adapter): transformWhere should account for customTransformInput (#2437) 2025-06-27 22:55:02 -07:00
Maxwell
3119cadf0d fix(create-adapter): getModelName should apply plural to custom model names (#3084)
Fixes https://github.com/better-auth/better-auth/issues/3069#issuecomment-2985270520
2025-06-27 22:53:46 -07:00
Maxwell
2a36760653 fix(email-otp): doesn't call onEmailVerification (#2974) 2025-06-27 22:06:16 -07:00
Bereket Engida
c1d4f467ff fix(account): add placeholder URL for type inference in linkSocialAccount response (#3199) 2025-06-27 20:22:16 -07:00
Bereket Engida
fece011149 chore: release v1.2.11 v1.2.11 2025-06-27 20:21:54 -07:00
Tai Vo
0679ebed3e chore: update jose to fix vite build (#3183) 2025-06-27 11:26:23 -07:00
Bereket Engida
ebde893b1c fix(user-card): refactor email verification button and update trusted origins 2025-06-27 11:22:43 -07:00
Bereket Engida
e3ce89562d docs: update contact email in seed round blog 2025-06-26 16:45:31 -07:00
KinfeMichael Tariku
001565a0f9 docs: fix blog page layout (#3176)
* fix/blog-page-layouts

* clean up
2025-06-26 16:21:40 -04:00
KinfeMichael Tariku
58919f8543 fix(api-key): update should only use by ID 2025-06-25 22:57:49 -04:00
Maxwell
e65125da8d refactor(mongo-adapter): migrate to createAdapter (#3170)
In the past we didn't have mongoDb adapter move over to createAdapter since we've seen users running into issues.

However some time ago I've merged a PR which I believe fixed the issue, and after testing the org plugin with the mongo adapter that uses `createAdapter` I don't see any issues.
2025-06-25 22:31:52 -04:00
Bereket Engida
76e186903e docs: fix email address 2025-06-25 12:46:48 -04:00
Bereket Engida
1d35c64e6b blog: seed round announcement (#3168)
* init

* cleanup

* fix seed round announcemnt

* fix seed round announcemnt

* seed round blog

* add nav mobile

* fix typo

* Update docs/content/blogs/seed-round.mdx

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

* Update docs/app/blog/[[...slug]]/page.tsx

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

* Update docs/app/blog/[[...slug]]/page.tsx

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

* update og

* cleanup

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-25 12:32:01 -04:00
Dan McGrath
048914fbaf docs: fix typo in oauth proxy documentation (#3151) 2025-06-24 16:40:31 -07:00
Jason Venable
5bdf3c0ec1 fix(sveltekit): only dynamic import $app/environment once (#3152)
Co-authored-by: Work <work@Jasons-MacBook-Pro.local>
2025-06-24 18:28:25 -04:00
Usman S. (Max Programming)
9d4861fc44 docs: update TanStack Start integration guide (#3142) 2025-06-23 10:55:58 -07:00