Commit Graph

3772 Commits

Author SHA1 Message Date
Bereket Engida
50924a42d5 docs: update reach out email 2025-07-03 11:40:11 -07:00
Shubham
d1ae4bd2f2 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-03 11:40:11 -07:00
Maxwell
ca770ab31e docs: fix changelogs not displaying user PFP (#3234) 2025-07-03 11:40:11 -07:00
Maxwell
54cce6531c docs(community-adapters): recommend the official convex version (#3232) 2025-07-03 11:40:11 -07:00
Maxwell
eea77a5020 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-03 11:40:11 -07:00
Abbas
4a5d798999 fix(drizzle-cli): use serial as PK when useNumberId is enabled (#3228) 2025-07-03 11:40:11 -07:00
Maxwell
b136f1b824 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-07-03 11:40:11 -07:00
Bereket Engida
2004c59f6c docs: update banner 2025-07-03 11:40:11 -07:00
Bereket Engida
946a9d4ff3 chore: release v1.2.12 2025-07-03 11:40:11 -07:00
Bereket Engida
89e7468ce5 chore: release v1.2.12 2025-07-03 11:40:11 -07:00
Bereket Engida
f6df2cf29b chore: release v1.2.12 2025-07-03 11:40:11 -07:00
Jed Patterson
6e291382fe feat: linear social provider (#2617)
* feature: linear oauth

* update profile map

* remove props spread from stringIcon

* update icon svg props

* updates

* update

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
2025-07-03 11:36:18 -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
0bd7d61a6e chore: fix pnpm lock file 2025-06-28 16:01:22 -07:00
Bereket Engida
e7eed8c848 docs: update banner 2025-06-28 00:45:14 -07:00
Bereket Engida
f8e2b693b9 chore: release 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
Bereket Engida
bb19306236 chore: release v1.3.0-beta.3 2025-06-27 23:37:18 -07:00
Bereket Engida
422e5bf4f5 Merge remote-tracking branch 'origin/main' into v1.3 2025-06-27 23:37:12 -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
Bereket Engida
5f76b0416f chore: release v1.3.0-beta.2 2025-06-27 22:59:23 -07:00
Bereket Engida
002cacbf2a Merge remote-tracking branch 'origin/main' into v1.3 2025-06-27 22:57:26 -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
Bereket Engida
dff5eb651b docs: add installtion guide on sso plugin 2025-06-27 22:48:10 -07:00
Bereket Engida
df987c166e chore: release v1.3.0-beta.1 2025-06-27 22:37:44 -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 2025-06-27 20:21:54 -07:00
Bereket Engida
a6a66d9c7e feat: SSO plugin with OIDC and SAML support (#3185)
* fix(email-verification): improve email verification logic to check session and user email consistency (#3042)

* docs(passkey): Fixed signIn passkey props (#3014)

callbackURL doesn't exist.

* fix(email-otp): auto-verify on email otp reset (#3022)

* fix: delete user should respect freshAge config (#3075)

* fix: delete user needs to enforced through fresh age

* cleanup

* cleanup

* chore(org): add comments explaining what shimContext does (#3098)

* feat: Allow passing `id` in DB hook `create` (#3048)

* feat(database-hooks): Allow passing `id` in DB hook `create`

It's the same to using a custom `idGenerator`, except configurable by the database hook which would in theory provide more data.

A use-case is to generate the id based on user info in the user before DB hook.

Solves https://discord.com/channels/1288403910284935179/1379190465588367540/1384217435535835216

* chore: lint

* fix: tests failing

* docs: basic errs with svg props (#3102)

* docs: corrected github user email scope name (#3099)

* docs: corrected github user email scope name

* docs: cubic dev suggestion

* fix: use correct refresh token endpoint for github (#3095)

* chore: fix typo in authorize comment (#3106)

* docs: fix session parameter spelling (#3108)

* docs: input field usage on additional fields (#2991)

* fix: onLinkAccount trigger on phone number verification (#3007)

* fix: expose headers override in jwt plugin (#3019)

* expose headers override in jwt plugin

* clean up

* lint

* fix(expo): remove duplicated trusted origins

* feat: link account with idToken  (#1830)

* add idToken to link account

* add docs

* Implemented linking accounts based on idToken

* fix: tests

* docs: prevent diff

* docs: prevent diff

---------

Co-authored-by: kzlar <120426485+kzlar@users.noreply.github.com>

* feat: add Hugging Face provider (#3089)

* feat: add huggingface provider

* Add hugging face to doc

* chore: update hugging face logo

* chore: release v1.2.10

* docs: fix builder failing to open

* docs(NextJS): Improve middleware example to be more secure (#3135)

* docs(NextJS): Improve middleware example to be more secure

Users can skim code without reading the text, and LLMs can read code and miss-understand context correctly.  Our current middleware example only checks for existence of a cookie, and doesn't validate it.

While we do warn users this isn't secure, some users has raised concern in a Github issue saying it's not obvious enough for users who skim.

Also we don't provide examples on how to authenticate users on each route, we only show middleware optimistic check examples.

* Update docs/content/docs/integrations/next.mdx

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

---------

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

* fix(username): log the correct username (#3127)

* docs: fix typo in plugin (#3122)

* typo

* typo

* typo

* typo

* typo

* docs: fix typos on mcp guide (#3146)

* docs: update TanStack Start integration guide (#3142)

* fix(sveltekit): only dynamic import $app/environment once (#3152)

Co-authored-by: Work <work@Jasons-MacBook-Pro.local>

* docs: fix typo in oauth proxy documentation (#3151)

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

* docs: fix email address

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

* fix(api-key): update should only use by ID

* docs: fix blog page layout (#3176)

* fix/blog-page-layouts

* clean up

* docs: update contact email in seed round blog

* init

* cleanup

* feat(better-auth): add test utilities and update dependencies

- Introduced a new test utility module in `src/test-utils/index.ts` for better testing support.
- Updated `package.json` to include new test utilities in the build configuration.
- Added `oauth2-mock-server` dependency to `pnpm-lock.yaml` and `sso/package.json` for OAuth2 testing.
- Enhanced the SSO provider registration process with improved error handling.

* docs update

---------

Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Co-authored-by: Undefined Ninja <74867549+0xCodeMaieutics@users.noreply.github.com>
Co-authored-by: artemoire <18062266+artemoire@users.noreply.github.com>
Co-authored-by: reslear <12596485+reslear@users.noreply.github.com>
Co-authored-by: kzlar <120426485+kzlar@users.noreply.github.com>
Co-authored-by: Eliott C. <coyotte508@protonmail.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Alessandro Bortolin <bortolin.alessandro@outlook.it>
Co-authored-by: Lakshya Thakur <lapstjup@gmail.com>
Co-authored-by: Usman S. (Max Programming) <51731966+max-programming@users.noreply.github.com>
Co-authored-by: Jason Venable <jason.venable@gmail.com>
Co-authored-by: Work <work@Jasons-MacBook-Pro.local>
Co-authored-by: Dan McGrath <daniel.mcgrath9@gmail.com>
2025-06-27 20:19:19 -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