X Enterprises
nuxt-x-auth

Login

Full email/password login form with optional OAuth buttons and links to signup, forgot password, magic link, and OTP flows.

Login

The XAuthLogin component renders a complete login form — email/password fields, optional OAuth provider buttons, and links to signup, forgot password, magic link, and OTP pages. All behaviour is driven by app.config.ts feature flags.

Components

<XAuthLogin />

Drop this on any page that should act as the login screen. It reads xAuth.features and xAuth.oauthProviders from app.config.ts and shows or hides sections accordingly. 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"
use-when: Login page for any supported auth provider (Stack, Better Auth, Neon Auth, Local JWT)
Copyright © 2026