nuxt-x-auth-stack
MagicLinkCallback
Handles the Stack Auth magic link callback URL by verifying the sign-in code from the query string.
MagicLinkCallback
The XAuthMagicLinkCallback component handles the landing page after a user clicks a Stack Auth magic link. It extracts the code query parameter and calls signInWithMagicLink, then redirects on success or shows an error on failure.
Components
<XAuthMagicLinkCallback />
Render on the page that your magic link redirects to (typically handled via XAuthHandler on /auth/handler/[...slug]).
<XAuthMagicLinkCallback />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
redirectTo | string | xAuth.redirects.afterLogin | Where to navigate after successful verification |
AI Context
component: XAuthMagicLinkCallback
package: "@xenterprises/nuxt-x-auth-stack"
use-when: Callback page that completes a Stack Auth magic link sign-in using the code in the URL
