+
+
Welcome, {{ user?.name }}
+
+
+
+```
+
+## Module Options
+
+### Auth Configuration
+
+```ts
+interface ModuleOptions {
+ // Auth endpoint
+ endpoint: string
+
+ // Patterns to match auth configuration files
+ serverConfigs?: string[]
+ clientConfigs?: string[]
+
+ // Client and server options
+ options: {
+ client?: ModuleClientOptions
+ server?: ModuleServerOptions
+ }
+
+ // Redirect options
+ redirectOptions: {
+ redirectUserTo?: string
+ redirectGuestTo?: string
+ redirectUnauthorizedTo?: string
+ }
+}
+```
+
+### Server Options
+
+```ts
+interface ModuleServerOptions {
+ appName?: string // Application name
+ baseURL?: string // Base URL for the auth API
+ basePath?: string // Base path for the auth API
+ secret?: string // Secret for JWT/session encryption
+}
```
-That's it! You can now use My Module in your Nuxt app ✨
+### Client Options
+
+```ts
+interface ModuleClientOptions {
+ baseURL?: string // Base URL for the auth API
+ basePath?: string // Base path for the auth API
+ disableDefaultFetchPlugins?: boolean // Disable default fetch plugins
+}
+```
+
+## API Reference
+
+### Client-side Composables
+
+#### `useUserSession()`
+
+Provides access to the authenticated user session and auth methods.
+
+```ts
+const {
+ // State
+ loggedIn, // Ref