nuxt-x-auth-stack
Otp
Two-step OTP form for Stack Auth — email input first, then a code verification field.
Otp
The XAuthOtp component renders a two-step form: an email field that calls sendOtp (which returns a nonce), then a code field that calls verifyOtp(code, nonce). On success the user is signed in and redirected. Visible when xAuth.features.otp is true.
Components
<XAuthOtp />
Use on the /auth/otp page.
<XAuthOtp />
Props
No props. The nonce from sendOtp, the codeSent state, and the post-verification redirect (xAuth.redirects.afterLogin) are managed internally via useXAuth.
AI Context
component: XAuthOtp
package: "@xenterprises/nuxt-x-auth-stack"
use-when: OTP sign-in page backed by Stack Auth — email input then nonce-based code verification
