X Enterprises
nuxt-x-auth-stack

Handler

Catch-all auth callback handler for Stack Auth — OAuth redirects, magic link, email verification, and password reset.

Handler

The XAuthHandler component is used on the /auth/handler/[...slug] catch-all page. It inspects the route slug and dispatches to the correct Stack Auth callback — OAuth code exchange, magic link verification, email verification, or password reset. Renders a loading indicator while processing.

Components

<XAuthHandler />

The shipped /auth/handler/[...slug] page derives type from the route slug and passes it in — mount it like this when building a custom handler page:

<XAuthHandler type="oauth-callback" />

Props

PropTypeDefaultDescription
typestringrequiredOne of magic-link-callback, oauth-callback, password-reset, email-verification — selects which Stack Auth callback to process
redirectTostringxAuth.redirects.afterLoginOverride the post-callback redirect path
redirectDelaynumber1500Milliseconds to wait before redirecting after a successful callback

AI Context

component: XAuthHandler
package: "@xenterprises/nuxt-x-auth-stack"
use-when: Catch-all callback page for Stack Auth OAuth redirects, magic link, email verification, and password reset
Copyright © 2026