X Enterprises
nuxt-x-auth

Handler

Auth callback handler for OAuth redirects, magic link completions, password reset, and email verification.

Handler

The XAuthHandler component processes an auth callback of a given type — OAuth code exchange, magic link verification, email verification, or password reset. It renders a loading indicator while processing, then redirects on success or shows an error with a link back to login. Used by the /auth/handler/[...slug] catch-all page, which maps the route slug to the type prop.

Components

<XAuthHandler />

<XAuthHandler type="magic-link" />

Props

PropTypeDefaultDescription
type'magic-link' | 'password-reset' | 'oauth' | 'email-verification'requiredThe kind of callback to process
redirectTostringxAuth.redirects.afterLoginOverride the post-callback redirect path. Only relative paths are accepted (open-redirect guard).
redirectDelaynumber1500Delay in ms before the automatic redirect after success

AI Context

component: XAuthHandler
package: "@xenterprises/nuxt-x-auth"
use-when: Callback page for OAuth redirects and magic link / email-verification / password-reset completions
Copyright © 2026