/examples missing? #1738

Closed
opened 2026-03-13 08:59:56 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @acoyfellow on GitHub (Aug 19, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

https://github.com/better-auth/better-auth/tree/main/examples

Current vs. Expected behavior

Was looking for the examples... hit a 404

What version of Better Auth are you using?

latest

System info

git repo

Which area(s) are affected? (Select all that apply)

Package

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

No response

Originally created by @acoyfellow on GitHub (Aug 19, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce https://github.com/better-auth/better-auth/tree/main/examples ### Current vs. Expected behavior Was looking for the examples... hit a 404 ### What version of Better Auth are you using? latest ### System info ```bash git repo ``` ### Which area(s) are affected? (Select all that apply) Package ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context _No response_
GiteaMirror added the bug label 2026-03-13 08:59:56 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

Hi @acoyfellow! I'm Dosu and I’m helping the better-auth team.

The /examples directory was recently removed from the repository as part of a cleanup (PR #3917), which explains the 404 error. Example projects are now maintained as private packages under the @better-auth/ namespace (like @better-auth/svelte-kit-example, @better-auth/nextjs-mcp-example), and some are still available in subdirectories such as examples/svelte-kit-example and examples/tanstack-example (PR #1742).

For up-to-date usage examples, check the official documentation, which includes code snippets and links to external example projects for frameworks like Next.js, Nuxt, and SvelteKit (Next.js example, Nuxt integration). Each example project typically has a README with instructions for running it locally.

If you need basic usage or config samples, the docs cover email/password, social sign-in, and advanced configuration (basic usage).

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 19, 2025): <!-- Greeting --> Hi @acoyfellow! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the better-auth team. <!-- Answer --> The `/examples` directory was recently removed from the repository as part of a cleanup ([PR #3917](https://github.com/better-auth/better-auth/pull/3917)), which explains the 404 error. Example projects are now maintained as private packages under the `@better-auth/` namespace (like `@better-auth/svelte-kit-example`, `@better-auth/nextjs-mcp-example`), and some are still available in subdirectories such as `examples/svelte-kit-example` and `examples/tanstack-example` ([PR #1742](https://github.com/better-auth/better-auth/pull/1742)). For up-to-date usage examples, check the official documentation, which includes code snippets and links to external example projects for frameworks like Next.js, Nuxt, and SvelteKit ([Next.js example](https://better-auth.com/docs/examples/next-js), [Nuxt integration](https://better-auth.com/docs/integrations/nuxt)). Each example project typically has a README with instructions for running it locally. If you need basic usage or config samples, the docs cover email/password, social sign-in, and advanced configuration ([basic usage](https://better-auth.com/docs/basic-usage)). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a13adca9-7ea6-4212-a1f0-1cc3bd9ac889?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/4086)
Author
Owner

@acoyfellow commented on GitHub (Aug 19, 2025):

thanks @dosubot - the sveltekit docs have the bad link: https://www.better-auth.com/docs/examples/svelte-kit

@acoyfellow commented on GitHub (Aug 19, 2025): thanks @dosubot - the sveltekit docs have the bad link: https://www.better-auth.com/docs/examples/svelte-kit
Author
Owner

@dosubot[bot] commented on GitHub (Aug 19, 2025):

You're right—the SvelteKit example link in the docs is currently broken. The example was maintained in the repo as a private package (@better-auth/svelte-kit-example) under examples/svelte-kit-example, but that directory was recently removed, which broke both the GitHub and StackBlitz links in the documentation. The instructions and embedded demo in the docs reference this missing directory, so they're outdated and can't be used as-is [docs file].

If you need a working SvelteKit integration, you can adapt from the code snippets in the docs or use the Next.js example as a template until the SvelteKit example is restored or updated. The team has actively maintained the SvelteKit example in the past, so it's likely the docs or repo will be updated soon [PR #1742].

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Aug 19, 2025): <!-- Answer --> You're right—the SvelteKit example link in the docs is currently broken. The example was maintained in the repo as a private package (`@better-auth/svelte-kit-example`) under `examples/svelte-kit-example`, but that directory was recently removed, which broke both the GitHub and StackBlitz links in the documentation. The instructions and embedded demo in the docs reference this missing directory, so they're outdated and can't be used as-is [[docs file](https://github.com/better-auth/better-auth/blob/94378285763cb70b625ff576a7d6a2c753040aa6/docs/content/docs/examples/svelte-kit.mdx)]. If you need a working SvelteKit integration, you can adapt from the code snippets in the docs or use the Next.js example as a template until the SvelteKit example is restored or updated. The team has actively maintained the SvelteKit example in the past, so it's likely the docs or repo will be updated soon [[PR #1742](https://github.com/better-auth/better-auth/pull/1742)]. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d07196cd-f462-490c-b577-506b28cbf3cb?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/4086)
Author
Owner

@himself65 commented on GitHub (Aug 19, 2025):

can you open a PR and fix the doc? thanks!

@himself65 commented on GitHub (Aug 19, 2025): can you open a PR and fix the doc? thanks!
Author
Owner

@Kinfe123 commented on GitHub (Aug 22, 2025):

we will have something official soon.

@Kinfe123 commented on GitHub (Aug 22, 2025): we will have something official soon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1738