X Enterprises
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

PropTypeDefaultDescription
redirectTostringxAuth.redirects.afterLoginOverride the post-login redirect path
loadingbooleanfalseShow a loading state on the submit button
errorstring | nullnullDisplay 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
Copyright © 2026