* docs: hero section alignment with feature section on big screens (#4018)
* fix: hero section alignment with feature section on big screens
* fix
---------
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
* chore: fix broken testomnial link
* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization
* chore: update sso docs
* chore: fix import typo
* docs: hero section alignment with feature section on big screens (#4018)
* fix: hero section alignment with feature section on big screens
* fix
---------
Co-authored-by: Bereket Engida <Bekacru@gmail.com>
* chore: fix broken testomnial link
* fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization
* chore: update sso docs
* chore: fix import typo
* chore: release v1.3.7-beta.4
* chore: release v1.3.7
* support both json and string
* add test and type
* fix up docs
* fix test
* fix test
* fix type
---------
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com>
Added comment to the user to place cookie setting plugin as the last item in the array similar to Next.js.
If not, will deal with problems on other plugins such as twoFactor
In the previous implementation, the import statement for 'auth' type from './auth' was included as part of the setup for the authClient, but it is no longer being used in the current code. This update removes the unnecessary import to clean up the code and prevent potential confusion.
Additionally, the authClient setup remains intact with the use of 'inferAdditionalFields' plugin to define additional user fields (role type set to 'string').
- Removed unused import: `import type { auth } from "./auth"`
- Kept the authClient initialization with 'inferAdditionalFields' plugin
This resolves a minor issue and ensures that the code remains clean and maintainable.
since version 1.0.0, all the endpoints exposed by the
@dodopayments/better-auth adapter now include a `dodopayments` prefix to
prevent conflict with other payment related better-auth plugins.
- Add complete example showing app.on() and serve() after CORS setup
- Include important note explaining CORS must come before route registration
- Ensures consistency with middleware section and prevents user confusion
- Critical for proper cross-origin request handling in authentication endpoints
* docs(api-key): move schema section to the bottom
* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)
* fix: ensure session is added to context when reading from cookie cache (#3578)
When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.
* chore: export siwe in better-auth/plugins (#3596)
The docs were using this import path, yet `siwe` wasn't exported there. This PR fixes this.
* chore: fix cookies test
* fix: client inference for organization additional fields
* improve additional fields
* fix build
* fix test
---------
Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
* docs(api-key): move schema section to the bottom
* fix: shouldn't refresh a token if access token expires is undefined or null (#3577)
* fix: ensure session is added to context when reading from cookie cache (#3578)
When session data is present in the cookie, `get-session` was
early-returning without adding the session to the context, causing hooks
to receive a null session.
This change ensures the session is consistently added to the context.
* feat(organization): add membersLimit param to allow to fetch more or less members than the membership limit
* add test
* Update packages/better-auth/src/plugins/organization/adapter.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: Gagan G <80091397+gaganref@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>