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
| Prop | Type | Default | Description |
|---|---|---|---|
loading | boolean | false | Show a loading state on the submit button |
error | string | null | null | Display 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
