X Enterprises
nuxt-x-auth-nile

ForgotPassword

Non-disclosing password reset request. Posts /auth/reset-password without json=true so Nile sends SMTP.

ForgotPassword

XAuthForgotPassword is the shipped /auth/forgot-password form (guest-only). Signed-in users should send a reset from an account page via forgotPassword(email) instead — they cannot stay on this guest-only route.

The composable POSTs /api/auth/reset-password without ?json=true. The Nile client SDK’s resetPassword({ redirect: false }) sets json=true, returns the link, and skips SMTP. SMTP is the Nile console SendGrid template, not Fastify xemail.

<XAuthForgotPassword />

Success copy is non-disclosing whether or not the address exists.


AI Context

component: XAuthForgotPassword
package: "@xenterprises/nuxt-x-auth-nile"
use-when: Forgot-password page. Never use authorizer.resetPassword({ redirect: false }) to send mail.
Copyright © 2026