X Enterprises
nuxt-x-auth-stack

Login

Email/password login form with optional magic link, OTP links, and OAuth buttons for Stack Auth.

Login

The XAuthLogin component renders a complete login form for Stack Auth — email/password fields, optional OAuth provider buttons, and links to signup, forgot password, magic link, and OTP pages. Behaviour is controlled by xAuth.features in app.config.ts.

Components

<XAuthLogin />

Use on the /auth/login page. On success it navigates to xAuth.redirects.afterLogin.

<XAuthLogin />

Props

PropTypeDefaultDescription
redirectTostringxAuth.redirects.afterLoginOverride the post-login redirect path
loadingbooleanfalseShow a loading state on the submit button
errorstring | nullnullDisplay an error message above the form

AI Context

component: XAuthLogin
package: "@xenterprises/nuxt-x-auth-stack"
use-when: Login page backed by Stack Auth
Copyright © 2026