nuxt-x-auth-local
Login
Email/password login form with a forgot-password link for self-hosted JWT backends.
Login
The XAuthLogin component renders an email/password form that posts to your configured login endpoint (localAuth.loginEndpoint). On success it stores the JWT in cookies and navigates to xAuth.redirects.afterLogin.
Components
<XAuthLogin />
Use on the /auth/login page.
<XAuthLogin />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
redirectTo | string | xAuth.redirects.afterLogin | Override the post-login redirect path |
loading | boolean | false | Show a loading state on the submit button |
error | string | null | null | Display an error message above the form |
AI Context
component: XAuthLogin
package: "@xenterprises/nuxt-x-auth-local"
use-when: Login page for a self-hosted JWT backend API
nuxt-x-auth-local
Self-hosted JWT authentication Nuxt layer — useXAuth composable, 4 pre-built UI components, global route middleware, automatic token refresh, and full endpoint configurability for your own backend.
Signup
Registration form that posts to the configured signup endpoint of a self-hosted JWT backend.
