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
| Prop | Type | Default | Description |
|---|---|---|---|
type | 'magic-link' | 'password-reset' | 'oauth' | 'email-verification' | required | The kind of callback to process |
redirectTo | string | xAuth.redirects.afterLogin | Override the post-callback redirect path. Only relative paths are accepted (open-redirect guard). |
redirectDelay | number | 1500 | Delay 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
