nuxt-x-auth-nile
Signup
Registration form with consents, OAuth gating, and Nile email-verification pending state.
Signup
XAuthSignup is the shipped /auth/signup form.
Nile’s POST /api/signup often returns 400 Email verification is required for sign in. after creating the user. This layer treats that as pending success (check-your-email UI + resend), not a failed signup. fastify-xauth-nile POSTs /api/auth/verify-email so SMTP sends once. The SPA does not send a second copy on signup.
The verify link sends the user to /auth/login?verified=1. They must sign in again — Nile does not mint a session on the click.
<XAuthSignup />
No props.
- Tenant creation.
features.createTenant: truepassescreateTenantto Nile (tenant named after the email). - OAuth. Same rules as login. Buttons stay disabled until required consents are checked.
- Consents.
xAuth.ui.consents— inline checkboxes.requireddefaults totrue.toopens in a new tab. Empty array = no checkboxes. - Resend. Check-your-email calls
resendVerificationEmail()(uses the pending signup address).
Validation: valid email; password at least 8 characters.
AI Context
component: XAuthSignup
package: "@xenterprises/nuxt-x-auth-nile"
use-when: >
Signup with Nile Auth. Treat "Email verification is required for sign in"
as pending success. Consents gate Create Account and OAuth.
