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
| Prop | Type | Default | Description |
|---|---|---|---|
type | string | required | One of magic-link-callback, oauth-callback, password-reset, email-verification — selects which Stack Auth callback to process |
redirectTo | string | xAuth.redirects.afterLogin | Override the post-callback redirect path |
redirectDelay | number | 1500 | Milliseconds 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
