Full-height re-authentication screen showing the signed-in user's avatar, name, and email with a single password field, a forgot-password link, and a use-a-different-account option. Perfect for session unlock and returning-user prompts.
Full-height re-authentication screen for an already-known user: their avatar, name, and email sit above a single password field, a forgot-password link, and a switch-account prompt. There is no email input at all, since the session already knows who is signing back in.
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/auth8?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth8?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth8.tsx and the button, input, field, and avatar shadcn/ui primitives it's built on.
The installed file exports auth8Demo alongside the block: the exact props behind the preview above. Spread it to get a working unlock screen in one line.
import { Auth8, auth8Demo } from "@/components/beste/block/auth8";
export default function UnlockPage() {
return <Auth8 {...auth8Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Auth8 } from "@/components/beste/block/auth8";
export default function UnlockPage() {
return (
<Auth8
user={{
name: "Jane Cooper",
email: "jane@example.com",
avatar: { src: "https://example.com/jane.jpg", alt: "Jane Cooper" },
}}
heading="Welcome back"
forgotPasswordLink={{ label: "Forgot password?", href: "/forgot-password" }}
switchAccountPrompt={{ text: "Not you?", linkLabel: "Use a different account", href: "/sign-in" }}
labels={{
password: "Password",
passwordPlaceholder: "Enter your password",
submit: "Continue",
passwordToggle: "Toggle password visibility",
}}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
user | Auth8User | – | Signed-in user shown above the form (avatar, name, email) |
heading | string | – | Screen title |
forgotPasswordLink | { label: string; href: string } | – | Link shown at the right of the password field label |
switchAccountPrompt | { text: string; linkLabel: string; href: string } | – | Line below the card, hidden entirely when not set |
labels | Auth8Labels | {} | Field/button copy, see below |
className | string | – | Extra classes for the outer <section> |
type Auth8User = {
name: string;
email: string;
avatar?: { src: string; alt: string };
};
type Auth8Labels = {
password?: string;
passwordPlaceholder?: string;
submit?: string;
passwordToggle?: string;
};<form> only calls e.preventDefault() on submit; there is no onSubmit prop, so nothing actually re-authenticates the user until the integrator wires a handler.useState, a type="button" icon button swapping Eye/EyeOff and the input's type between password and text.user.avatar is set; its AvatarFallback initials are computed by splitting user.name on spaces and taking each part's first letter.labels.submit and labels.password being present, not through separate boolean props.Wiring the form up
This block ships the form markup only; state, validation, and submit are yours to add. Our guide wires the shadcn Field primitives to React Hook Form, TanStack Form, and Formisch on one field system.
auth17
Full-height signed-out screen with a centered icon, a heading and message, a sign-back-in button, and a return-home link. Perfect for logout confirmations and expired-session pages.
auth23
Full-height lockout screen shown after too many failed attempts, with a live mm:ss countdown, a retry button that unlocks when the timer ends, and a reset-password link. Perfect for rate-limited sign-in protection.
auth4
Full-height password recovery screen with a centered icon, single email field built on the shadcn Field primitives, a send-reset-link button, and a back-to-sign-in link. Perfect for the first step of any password reset flow.
auth5
Full-height reset-password screen with new and confirm password fields (each with a show/hide toggle) and a live requirements checklist that ticks off rules as the user types. Perfect for the final step of a password reset or invite flow.
auth46
Full-height step-up authentication screen that re-asks for the password before a sensitive action, showing the signed-in account and a cancel option. Perfect for protecting billing, security, and destructive actions.
auth21
Full-height passwordless sign-in screen with a fingerprint icon, a continue-with-passkey button, and a password fallback below a divider. Perfect for WebAuthn and biometric authentication flows.