X Enterprises
nuxt-x-auth-local

ForgotPassword

Password reset request form that posts to the configured forgot-password endpoint and shows a success state.

ForgotPassword

The XAuthForgotPassword component renders a single-field form that calls forgotPassword. After submission it always shows a success state (regardless of whether the email exists) to prevent email enumeration. Works when xAuth.features.forgotPassword is true.

Components

<XAuthForgotPassword />

Place on the /auth/forgot-password page.

<XAuthForgotPassword />

Props

PropTypeDefaultDescription
loadingbooleanfalseShow a loading state on the submit button
errorstring | nullnullDisplay an error message above the form

AI Context

component: XAuthForgotPassword
package: "@xenterprises/nuxt-x-auth-local"
use-when: Forgot password page for a self-hosted JWT backend — prevents email enumeration by always showing success
Copyright © 2026