Skip to content

Pages · Reference

VerifyEmail

Verify an email address with a one-time code.

Preview

Loading preview…

Usage

tsx
import { VerifyEmail } from "@krak-stack/auth/verify-email/react";

export const Example = () => <VerifyEmail defaultRedirectTo="/" />;

In Effect UI, use VerifyEmailLive for the default auth transport. After Verified, refresh the session and navigate from the host. Use the raw VerifyEmail view with your own RunEmailVerification layer when the host supplies the transport.

Mount VerifyEmail on /verify-email. The form accepts an email address and a six-digit code and lets the visitor request a new code. Use defaultRedirectTo to set the fallback destination after verification.