Commit Graph
6933 Commits
Author SHA1 Message Date
Bereket Engida fd8cc52977 chore: update dependencies in pnpm-lock.yaml and package.json
- Bump '@types/bun' from 1.2.17 to 1.2.18
- Update '@better-auth/utils' from 0.2.5 to 0.2.6
- Adjust versioning for 'bun-types' and 'vinxi' to reflect new dependencies
2025-07-06 23:49:58 -07:00
MaxwellandGitHub 32d838e37c fix(admin): throw an error if user id in /remove-user is invalid (#3271) 2025-07-06 13:37:02 -07:00
jyc.devandGitHub 2de1cd27f6 docs(community-adapters): Remult (#3275)
* Adding @nerdfolio/remult-better-auth

* add some spaces
2025-07-06 09:42:43 -07:00
LightTab2andGitHub f9b19fb11b fix(jwt): Allow to generate JWKS with other algorithm than the default one (#3219)
* Fixes #3218

* Lint

* Adds tests to every currently available algorithm

* fixes duplicate test names

Oversight

* Disables EdDSA(Ed448) test for now, removes debug print

Will think if the found bug should be addressed in a seperate issue

* Drops testing support for Diffie-Hellman algorithms

Adds comments why some algorithms are not tested

* new tests are for token generation

On my local machine all tests passed, but on CI some weird error occurred with `getSession`. Changed `client.getSession` to simply `client.token`. Should consider separate tests for `client.getSession`

* More robust tests, checks for failures of called testing functions

Tests `signInWithTestUser` and `getTestInstance` for possible failures

* Should locate which test fails

* removes inline functions

They're the reason why errors escaped `it()`!

* Fixes 'createKeys' inline function replacement

* Adds client tests

* Adheres to AI review, skips a duplicate test

AI might have hallucinated there but w/e

* Final cleanup, `headers` as `var` to infer types correctly

* Headers fix

I forgot to commit one change when typescript check failed and maybe because of that. Setting headers to `var` breaks tests, so gotta revert
2025-07-06 00:21:09 -07:00
Bereket Engida b2494d330f chore: release v1.3.0-beta.4 v1.3.0-beta.4 2025-07-05 21:58:49 -07:00
Bereket Engida 3b89319115 Merge branch 'main' into v1.3 2025-07-05 21:58:38 -07:00
Inas LuthfiandGitHub 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
JackandGitHub 57baf02f84 feat(anonymous): update generateName to support returning a promise (#3259) 2025-07-04 11:48:00 -07:00
Bereket EngidaandGitHub 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
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
Bereket Engida 5b2f87535c Merge remote-tracking branch 'origin/main' into v1.3 2025-07-03 11:41:56 -07:00
Bereket Engida 50924a42d5 docs: update reach out email 2025-07-03 11:40:11 -07:00
ShubhamandBereket Engida 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
MaxwellandBereket Engida ca770ab31e docs: fix changelogs not displaying user PFP (#3234) 2025-07-03 11:40:11 -07:00
MaxwellandBereket Engida 54cce6531c docs(community-adapters): recommend the official convex version (#3232) 2025-07-03 11:40:11 -07:00
MaxwellBereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
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
AbbasandBereket Engida 4a5d798999 fix(drizzle-cli): use serial as PK when useNumberId is enabled (#3228) 2025-07-03 11:40:11 -07:00
MaxwellBereket Engidacubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
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
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 VenandGitHub fb303855ee docs: correct the number of fields required in the username migration (#3254) 2025-07-03 10:09:27 -07:00
ShubhamandGitHub 379b5d872c fix(mongodb): honor custom generateId in create (#3178) 2025-07-02 14:11:08 -07:00
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
MaxwellandGitHub b08d1d2099 fix(organization): list-teams endpoint returns unknown (#3243) 2025-07-02 13:58:24 -07:00
KinfeMichael TarikuandGitHub 6444c0498e fix(cli): format drizzle schema output (#3244) 2025-07-02 13:45:03 -07:00
George GebbettandGitHub e24c859c64 docs: correct stripe capitalization (#3247) 2025-07-02 13:12:13 -07:00
ShubhamandGitHub 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
ShubhamandGitHub 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
MaxwellandGitHub 8cbc22bcaf docs: fix changelogs not displaying user PFP (#3234) 2025-07-01 08:55:22 -07:00
MaxwellandGitHub 6bbc86eb8a docs(community-adapters): recommend the official convex version (#3232) 2025-07-01 08:54:57 -07:00
MaxwellGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
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
AbbasandGitHub 12e15cce41 fix(drizzle-cli): use serial as PK when useNumberId is enabled (#3228) 2025-06-30 18:36:23 -07:00
MaxwellGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
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 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 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
MaxwellandGitHub 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 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
MaxwellandGitHub 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
MaxwellandGitHub 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
MaxwellandGitHub c13d1867a8 fix(create-adapter): transformWhere should account for customTransformInput (#2437) 2025-06-27 22:55:02 -07:00