Commit Graph
6898 Commits
Author SHA1 Message Date
Bereket Engida c83b23c6ba docs(api-key): move schema section to the bottom 2025-07-23 21:16:22 -07:00
Khiet Tam NguyenandGitHub e11c51e210 feat(cli): added --yes for generate/migrate, deprecated --y (#3542)
* feat(cli): added --yes option, deprecated --y, as per #1937

* feat:(cli): add deprecation warning to console if --y is used

* style(cli): linted migrate.ts & generate.ts

* docs(cli): revert 1.0 changelog
2025-07-23 09:31:06 -07:00
Bereket Engida 602ab7c4c6 chore: release v1.3.3 v1.3.3 2025-07-22 23:02:47 -07:00
Bereket EngidaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
a1cdb8b115 fix(organization): list organization teams should prioritize query param team id(#3531)
* fix: list organization teams

* Update packages/better-auth/src/plugins/organization/routes/crud-team.ts

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

* add request check

* fix list team members

* add desc

* fix: fetch session

* update

* only allow fetching using userid when request doesn't exist

* requrie session

* remove org id

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-22 23:02:31 -07:00
Bereket EngidaandGitHub 7de38cb68a fix(stripe): revert a change where incomplete stripe session is getting updated to active on upgrade (#3554) 2025-07-22 22:59:36 -07:00
Jakob NorlinandGitHub c5fdfa6264 chore: export types from organization plugin (#3546) 2025-07-22 19:32:55 -07:00
Nate TeweldeandGitHub 52695f0280 fix(sso): include mapping inside samlConfig payload (#3548) 2025-07-22 18:22:07 -07:00
Bereket EngidaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
dea6419e09 feat(sso): support disabling setting email verified from a provider (#3551)
* feat: support disabling setting email verified

* Update docs/content/docs/plugins/sso.mdx

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

* fix: update account handling in SSO to support trusted providers

* default to not setting email verified

* docs: update documentation

* add attribute map

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-22 18:19:25 -07:00
DannyandGitHub 8fbe8f03a5 chore: model name needs to be default name (#3538)
I was mistaken a [previous fix](https://github.com/better-auth/better-auth/commit/452069aed976f3f06bd3f94d0d51cc74449ad9e3), it just moved the error.

This value should be the default model name to match [transformInput](https://github.com/better-auth/better-auth/blob/76c90f2e59b99c6d84b30ca0d3bc82cc0644ef2f/packages/better-auth/src/adapters/create-adapter/index.ts#L324) schema lookup.

The schema looks like this
```
{
   ...
        rateLimit: {
          modelName: 'rateLimits',
          fields: {
            key: [Object],
            count: [Object],
            lastRequest: [Object],
            id: [Object]
          }
        }
      }
```

Matching on the default name returns the correct schema.

This test is now passing locally a different rateLimiter model. 

```
            it ( "should hit rate limit on forth login attempt within 10s", async () => {

                for ( let i = 0; i < 3; i++ ) {

                    const response = await request( testApp )
                        .post( usernameSignInPath )
                        .send( { username: testUsername, password: testPassword } );

                    expect( response.statusCode ).toEqual( 200 );

                }

                const res = await request( testApp )
                    .post( usernameSignInPath )
                    .send( { username: testUsername, password: testPassword } );

                expect( res.statusCode ).toEqual( 429 );
                expect( res.headers ).toHaveProperty( "x-retry-after" );

            } );
```
2025-07-21 23:09:03 -07:00
KinfeMichael TarikuandGitHub 76c90f2e59 chore: fix memebrship limit js doc (#3534) 2025-07-21 20:16:48 -07:00
Bereket Engida 6d84138c80 docs: fix installtion guide in dodopayments 2025-07-21 20:12:59 -07:00
DannyandGitHub 452069aed9 fix: issue when setting rate limit storage with a different model name (#3536)
The `set` function of `createDbStorage` is referencing a hardcoded string 'rateLimit'. This causes an error when a custom name for the model has been used:

```
TypeError: Cannot read properties of undefined (reading 'fields')
``` 

It should use the model the `get` method uses which reads `modelName` if it has been specified.

This change fixes the error locally for me.
2025-07-21 20:01:01 -07:00
23f142e4b6 docs: added dodo payments plugin (#3468)
* docs: added dodo payments better auth adapter docs

* cleanup

* cleanup

* cleanup

---------

Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-21 19:54:04 -07:00
Bereket Engida fa9b497370 chore: release v1.3.2 v1.3.2 2025-07-20 22:19:21 -07:00
KinfeMichael TarikuandGitHub bc88ade07c fix: improve setting active org performance (#3497) 2025-07-20 22:18:01 -07:00
Bereket Engida 4fa11b4f3f chore: export siwe typesVersion 2025-07-20 22:15:26 -07:00
Bereket Engida e8d291affe chore: add SIWE plugin export 2025-07-20 22:14:48 -07:00
KinfeMichael TarikuandGitHub 5a66317c53 chore: fix auth type (#3510) 2025-07-20 22:09:54 -07:00
Charlie ✨andGitHub f8caeb9185 docs: add NuxtOne link as example integration with Nuxt (#3492) 2025-07-20 22:09:24 -07:00
SaurabhandGitHub 9abf1165b8 docs: update SvelteKit installation (#3506) 2025-07-20 16:24:33 -07:00
TheUntraceableandGitHub 02ae10ca43 docs: fix typo in organization invitation docs (#3508)
* Fix typo in organization invitation docs

* Fix typo in code for invitations
2025-07-20 16:23:11 -07:00
Bereket Engida 99460c6325 chore: release v1.3.1 v1.3.1 2025-07-19 19:32:20 -07:00
Bereket Engida 99f5f53927 chore: release v1.3.1 2025-07-19 19:32:05 -07:00
Bereket EngidaandGitHub 3b802587f3 fix(organization): multi teams breaking active organization id type inference (#3491)
* fix(organization): multi teams breaking active organization id type inference

* fix: type
2025-07-19 19:12:51 -07:00
Bereket Engida 8a8d876a7c chore: remove unused code 2025-07-19 18:25:12 -07:00
Bereket Engida 3a824f9660 docs: remove border from blog 2025-07-19 18:19:47 -07:00
Dagmawi BabiandGitHub adee10d522 docs: better blog preview (#3489) 2025-07-19 17:39:17 -07:00
Bereket Engida 84a8af814e docs: fix hero light mode 2025-07-19 16:14:38 -07:00
MaxwellandGitHub c92efae1ee fix(organization): dixed organization schema inference when multiple plugins are present in the plugins array (#3486) 2025-07-19 16:09:11 -07:00
Bereket Engida 9ed047a4b4 chore: release v1.3.1-beta.1 v1.3.1-beta.1 2025-07-19 15:38:04 -07:00
Dagmawi BabiandGitHub bd8ae58c5f fix: changed the Twitter provider to use "post" authentication instead of "basic" when validating the authorization code (#3485) 2025-07-19 15:37:45 -07:00
MaxwellandGitHub 9a470865d2 fiz(organization): additional fields improvements (#3483)
* update(org): additional fields improvements

Fix: type error in client plugin auth generic
update: improved change-logs blog

* fix: teams still inferred

* update: changelog
2025-07-19 15:22:45 -07:00
MaxwellandGitHub 9d9798abf1 docs: remove old new tags (#3482) 2025-07-19 15:22:08 -07:00
Bereket Engida 79629fa351 docs: update oidc provider link 2025-07-19 13:54:50 -07:00
KinfeMichael TarikuandGitHub 374c1a20b3 chore: fix typo on v1.3 release blog (#3479)
* update

* lint
2025-07-19 13:05:28 -07:00
Bereket Engida 1956bcdc07 chore: release v1.3.0 v1.3.0 2025-07-19 13:00:11 -07:00
Bereket Engida 9b66fe6815 chore: fix jwt not working with different algs 2025-07-19 12:58:12 -07:00
dd7a158d47 docs: v1.3 announcement changelog (#3476)
* v1.3 init anouncement changelog docs

* revamp on guide

* stale

* saml

* code block

* update

* update

* revamp and update

* feat: changelog image

* docs and og image

* revert

* update

* v1.3

* cont

* init

* update

* chore add count method

* update og

* update og

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
2025-07-19 12:51:15 -07:00
Bereket Engida 28c846a7cc feat(organization): multi-team support 2025-07-19 12:07:35 -07:00
8e4f9b6c6f feat(magic-link): support errorCallbackURL & newUserCallbackURL (#3268)
* feat(magic-link): Support errorCallbackURL & newUserCallbackURL

* chore: lint

* fix: missing path

* chore:lint

* fix: type error due to zod4

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
2025-07-18 22:08:33 -07:00
James BairdandGitHub 26fd71e82e fix(two-factor): use twoFactorEnabled flag instead of database lookup for OTP validation (#3302)
* fix: remove redundant calls to two factor table

* fix lint
2025-07-18 21:50:53 -07:00
Bereket Engida 28f7cbf07a chore: release v1.3.0-beta.11 v1.3.0-beta.11 2025-07-18 21:45:10 -07:00
Bereket Engida 79fd214964 chore: release v1.3.0-beta.10 v1.3.0-beta.10 2025-07-18 20:54:55 -07:00
Bereket EngidaandGitHub 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 EngidaandGitHub 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