X Enterprises
nuxt-x-auth-better

Handler

Catch-all auth callback handler for OAuth redirects and magic link completions with Better Auth.

Handler

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

Components

<XAuthHandler />

Mount on the catch-all handler page; no props needed.

<XAuthHandler />

Props

PropTypeDefaultDescription
redirectTostringxAuth.redirects.afterLoginOverride the post-callback redirect path

AI Context

component: XAuthHandler
package: "@xenterprises/nuxt-x-auth-better"
use-when: Catch-all callback page for Better Auth OAuth redirects and magic link completions
Copyright © 2026