X Enterprises
nuxt-x-auth-local

Signup

Registration form that posts to the configured signup endpoint of a self-hosted JWT backend.

Signup

The XAuthSignup component renders a registration form with email and password fields (password minimum 8 characters, validated with Zod). It posts to localAuth.signupEndpoint and on success navigates to xAuth.redirects.afterSignup.

Components

<XAuthSignup />

Used by the built-in /auth/signup page, shown when xAuth.features.signup is true. The component is self-contained: it takes no props and drives itself from useXAuth() and the xAuth app config.

<XAuthSignup />

Behavior

  • Shows an "Already have an account? Sign in" link to xAuth.redirects.login.
  • Renders a Terms of Service / Privacy Policy footer linking to /terms and /privacy — add those pages in the consumer (or override the signup page) to match your app.
  • The form icon comes from xAuth.ui.form.icon, falling back to i-lucide-user-plus.
  • Submit button shows a loading state while the signup request is in flight (isLoading from useXAuth).

AI Context

component: XAuthSignup
package: "@xenterprises/nuxt-x-auth-local"
use-when: Signup / registration page for a self-hosted JWT backend API
Copyright © 2026