You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/index.md
+4-66Lines changed: 4 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,70 +4,8 @@ description: Seamless Better Auth integration for Nuxt with automatic route prot
4
4
navigation: false
5
5
---
6
6
7
-
Nuxt Better Auth is a Nuxt 4 module that wraps [Better Auth](https://www.better-auth.com/) with Nuxt-native configuration, route protection, SSR-safe session access, and optional NuxtHub schema generation.
7
+
::landing-hero
8
+
::
8
9
9
-
## Start here
10
-
11
-
Use the docs in this order if you are setting up the module for the first time:
You should finish that path with a working `/api/auth/*` backend, a client config, and a login flow that can read session state through `useUserSession()`.
20
-
21
-
## Choose the right setup
22
-
23
-
| If you want to... | Start here |
24
-
| --- | --- |
25
-
| Get a database-backed setup running quickly |[NuxtHub](/integrations/nuxthub)|
26
-
| Plug Better Auth into your own database stack |[Custom database](/guides/custom-database)|
27
-
| Reuse an external Better Auth server |[External auth backend](/guides/external-auth-backend)|
28
-
| Avoid a database and accept stateless session tradeoffs |[Database-less mode](/guides/database-less-mode)|
29
-
| Migrate from `nuxt-auth-utils`|[Migration guide](/guides/migrate-from-nuxt-auth-utils)|
30
-
31
-
## What the module adds on top of Better Auth
32
-
33
-
-`server/auth.config.ts` and `app/auth.config.ts` helpers
34
-
- auto-imported client and server auth utilities
35
-
- route protection through `routeRules` and page meta
36
-
- SSR-aware session hydration
37
-
- typed `AuthUser` and `AuthSession` inference from your config
38
-
- optional NuxtHub database and schema integration
0 commit comments