Commit Graph
1287 Commits
Author SHA1 Message Date
Bereket Engida dff5eb651b docs: add installtion guide on sso plugin 2025-06-27 22:48:10 -07:00
+6 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
4e38645b44 feat: sveltekit cookie helper plugin (#3049)
* 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.

* feat: svelte kit cookie helper

* lint

* docs and clean up

* clean up

* lint

* clean up

* clean up

* sync cookies

* lint

* pruning

* pruning and lint

* update

* update

* update

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
Co-authored-by: Maxwell <145994855+ping-maxwell@users.noreply.github.com>
2025-06-20 13:47:26 -07:00
MaxwellandGitHub be3face70c feat(username): Check username availability (#3025)
* feat(username): Check username availability

closes https://github.com/better-auth/better-auth/issues/1553

* add: docs
2025-06-16 00:24:57 -07:00
Bereket Engida b6edbb9ab9 docs: remove callout and default cookie attributes for cross subdomain cookies 2025-06-15 12:44:33 -07:00
MaxwellandGitHub 015ba5632b feat(organization): maximumMembersPerTeam support (#2374)
* feat(organization): maximumMembersPerTeam support

Allow configuration of maximum number of members allowed in a team.

* chore: cleanup
2025-06-14 15:14:16 -07:00
moveroandGitHub 06a613422b docs(microsoft): correct how to require account selection (#3016) 2025-06-13 16:58:03 -07:00
Bereket Engida 8207ae4e01 docs: fix scrollbar 2025-06-12 22:11:44 -07:00
Bereket Engida b253130d5e chore: change sign-in box footer to built-with 2025-06-12 21:57:01 -07:00
Muhammed RahifGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
0de0a29bc7 docs(admin): clarify on the checkRolePermission function (#3002)
* docs(admin): clarify on the `checkRolePermission` function

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

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

* Update admin.mdx

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-12 21:31:04 -07:00
Seth WeinheimerandGitHub 3f25944726 docs: update options for oauth2 registration option (#2992) 2025-06-11 14:59:47 -07:00
SrikanthandGitHub c78574311b docs(tanstack): migrate from createAPIFileRoute to createServerFileRoute (TanStack Start) (#2984)
The `createAPIFileRoute` method is no longer available in the latest version of TanStack Start. This commit updates the codebase to use the new `createServerFileRoute` method for handling API routes, ensuring compatibility with the latest library version.
2025-06-11 12:27:38 -07:00
Matteo UrsoandGitHub 2a793139a5 docs: update casing for getMcpSession reference (#2978) 2025-06-11 11:33:12 -07:00
90db4c3896 fix: oauth proxy between http and https (#2895)
* Update index.ts

* support prefix

* chore: revert test

* skip oauth proxy header

* add test

---------

Co-authored-by: Bereket Engida <bekacru@gmail.com>
2025-06-09 23:30:32 -07:00
Rohan GodhaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
cb3f07f133 docs(stripe): document switching plans on a subscription (#2862)
* docs(stripe): document switching plans

* Update docs/content/docs/plugins/stripe.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>
2025-06-09 23:12:41 -07:00
NecoandGitHub f2def63dd8 docs: update surreal adapter community link (#2957)
## Replace unmaintained SurrealDB adapter with actively maintained version

### Summary
This PR updates the Community Adapters table to replace the unmaintained `surreal-better-auth` adapter with `surrealdb-better-auth`, which is actively maintained.

### Changes
- Updated SurrealDB adapter entry from `oskar-gmerek/surreal-better-auth` to `Necmttn/surrealdb-better-auth`
- Updated author information and GitHub avatar accordingly
- Maintained the same database dialect (SurrealDB)

### Reason for Change
The previous SurrealDB adapter (`oskar-gmerek/surreal-better-auth`) is no longer maintained. The new adapter (`surrealdb-better-auth`) provides ongoing support and maintenance for SurrealDB integration with Better Auth.

### Testing
- [x] Verified the new adapter repository exists and is publicly accessible
- [x] Confirmed the adapter is compatible with Better Auth
- [x] Updated documentation links are valid

This ensures users have access
2025-06-09 21:15:53 -07:00
Bereket Engida 38ce94994c chore: remove blog 2025-06-09 20:13:43 -07:00
Bereket Engida 9fbea84c5f refactor: getCookieCache to be async 2025-06-07 17:31:33 -07:00
Bereket Engida 5eb3c03176 feat: add getCookieCache helper and update session handling 2025-06-07 16:46:01 -07:00
Bereket EngidaGitHubcubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
eaf80cf945 fix: rename forgetPassword APIs to requestPasswordReset (#2947)
* fix: rename  to

* Update demo/nextjs/app/(auth)/forget-password/page.tsx

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>
2025-06-07 16:28:47 -07:00
Bereket Engida db2c0d0c8a docs: fix api typo on security guide 2025-06-07 15:04:41 -07:00
KinfeMichael TarikuandGitHub 335e6be0bf docs: headers in the setPassword method (#2923) 2025-06-06 14:22:15 -07:00
LucaandGitHub 91d504d81b docs(fix): replace error with status in elysia example (#2897)
* fix(docs): replace error with status in elysia example

https://github.com/elysiajs/elysia/blob/7d921a2c90b99a83240b20d01e8673e49e4327fd/src/context.ts#L190

* fix(docs): undo typo in elysia example
2025-06-04 15:53:44 -07:00
Richard PoelderlandGitHub 5526b24568 docs: remove unused withMcpAuth (#2902)
it's imported but unused.
2025-06-04 08:54:51 -07:00
Bereket Engida e96e07ed75 docs: match the hero section background 2025-06-03 16:18:18 -07:00
KinfeMichael TarikuandGitHub f6e18b8a85 docs: cors callout in cookies (#2886) 2025-06-03 00:11:10 -07:00
8e4cd77433 feat(passkey): AAGUID field support (#2189)
* feat(passkey): AAGUID support

* docs: added aaguid options

* satisfies on base type

---------

Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
2025-06-02 23:57:30 -07:00
Bennett DamsandGitHub df01a2e74c docs: clarify drizzle adapter option for plural tables (#2883) 2025-06-02 17:11:10 -07:00
KinfeMichael TarikuandGitHub 77d7936605 fix: docs sidebar height (#2882) 2025-06-02 14:17:33 -07:00
CyanhallandGitHub 186e42a95f docs: add NuxSaaS link as example integration with Nuxt (#2868)
docs: fix formatting of NuxSaaS link in Nuxt integration documentation
2025-06-01 22:16:27 -07:00
Dominik K.andGitHub 04695a7c5b docs: improve Expo documentation (#2335)
* docs: improve expo documentation

* fix: add missing extention

* fix: move back to kebab case

* fix: correct session example

* fix: review comments + export name change
2025-06-01 12:48:28 -07:00
MaxwellandGitHub 05ec120aba docs: simplified comparisons page (#2867) 2025-06-01 08:07:45 -07:00
Harry BuismanandGitHub 662762cd8e docs: fix SSO redirect URL (#2863) 2025-05-31 23:15:28 -07:00
Felipe RochaandGitHub fa1e702912 docs: remove unnecessary await in permission checks (#2859) 2025-05-31 14:27:16 -07:00
KinfeMichael TarikuandGitHub a8c65d9871 docs: list user with query filter operator (#2857) 2025-05-31 13:09:29 -07:00
Bereket Engida 5c864f4482 docs: fix missing avatar url 2025-05-31 08:46:23 -07:00
KinfeMichael TarikuandGitHub 0d33d9d8ed docs: basePath options in auth config (#2851) 2025-05-31 01:33:54 -07:00
KinfeMichael TarikuandGitHub 77c38594bb docs: generic oauth options (#2845) 2025-05-30 17:32:20 -07:00
KinfeMichael TarikuandGitHub 872a65adc1 docs: baseURL option in auth config (#2844) 2025-05-30 16:50:57 -07:00
Bereket Engida dcbaddab8c docs: remove yc launch embed 2025-05-30 15:51:12 -07:00
KinfeMichael TarikuandGitHub 84d1853ad5 docs: mcp blog typo (#2833) 2025-05-29 20:30:19 -07:00
TaesuandGitHub efc655de80 docs: add missing trustedOrigins option (#2822) 2025-05-28 21:31:38 -07:00
TakaandGitHub cb5de99501 docs: add callback URL property to sign up method (#2815) 2025-05-28 15:30:06 -07:00
crutchtheclutchandGitHub fdee04fdc7 feat(customPaths): provide an option to modify and map api paths (#2193) 2025-05-28 10:32:03 -07:00
Snehendu RoyandGitHub ebf06eb00c docs: email otp verification guide (#2717) 2025-05-27 23:09:52 -07:00
KinfeMichael TarikuandGitHub 8d82cf5959 docs: remove incorrect reference to nullable fieldAttribute 2025-05-27 17:33:03 -07:00
Julio MontoyaandGitHub 95d79deb30 docs: update hono intergration (#2738) 2025-05-27 17:00:54 -07:00
CZ TangandGitHub c3caf1c8da docs: update github docs (#2783) 2025-05-27 16:45:58 -07:00
KinfeMichael TarikuandGitHub 7ad8129cf9 docs: incorrect reference link (#2806) 2025-05-27 16:02:05 -07:00
KinfeMichael TarikuandGitHub 25b7f4f2d6 chore: add clerk migration video guide 2025-05-27 01:33:23 -07:00