BETTER-AUTH. UI
Components

<VerifyEmail />

Renders a Solid view that prompts the user to verify their email, with an open-email button and a cooldown-limited resend button.

Usage

import { VerifyEmail } from "@/components/auth/verify-email"

export function VerifyEmailDemo() {
  return <VerifyEmail />
}

Installation

npx shadcn@latest add https://better-auth-ui.com/r/solid/verify-email.json

After install, src/components/auth/verify-email.tsx and the copied verify-email files are app-owned. The component reads the target email from sessionStorage (set on sign-up or sign-in redirect) and redirects back to sign-in when no email is stored.

Props

Prop

Type

Last updated on

On this page