nuxt-x-auth
Otp
Two-step OTP form — email input first, then a code verification field after the code is sent.
Otp
The XAuthOtp component renders a two-step form: first an email field that calls sendOtp, then a code field that calls verifyOtp. On successful verification the user is signed in and redirected. Visible when xAuth.features.otp is true.
Components
<XAuthOtp />
Use on the /auth/otp page.
<XAuthOtp />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
redirectTo | string | xAuth.redirects.afterLogin | Override the post-verification redirect path |
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: XAuthOtp
package: "@xenterprises/nuxt-x-auth"
use-when: OTP sign-in page — email input then code verification for passwordless auth
