nuxt-x-auth
MagicLinkCallback
Handles the magic link callback URL by reading the code query parameter and verifying the sign-in.
MagicLinkCallback
The XAuthMagicLinkCallback component handles the landing page after a user clicks a magic link. It extracts the code query parameter and calls handleMagicLinkCallback, then redirects on success or shows an error on failure.
Components
<XAuthMagicLinkCallback />
Render on the page that your magic link redirects to (e.g. /auth/handler/magic-link-callback).
<XAuthMagicLinkCallback />
Props
No props. The component reads code from the route query and, on success, navigates to the redirect_to query parameter when present, otherwise to xAuth.redirects.afterLogin.
AI Context
component: XAuthMagicLinkCallback
package: "@xenterprises/nuxt-x-auth"
use-when: Callback page that completes magic link authentication using the code in the URL
