Welcome Back Unlock

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.

PRO

Auth8: Welcome Back Unlock

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.

Upgrade to Pro

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.

Installation

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

bash
npx shadcn add "https://ui.beste.co/r/auth8?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
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.

Quick start

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.

tsx
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:

tsx
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",
      }}
    />
  );
}

Props

PropTypeDefaultDescription
userAuth8UserSigned-in user shown above the form (avatar, name, email)
headingstringScreen 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
labelsAuth8Labels{}Field/button copy, see below
classNamestringExtra classes for the outer <section>
ts
type Auth8User = {
  name: string;
  email: string;
  avatar?: { src: string; alt: string };
};

type Auth8Labels = {
  password?: string;
  passwordPlaceholder?: string;
  submit?: string;
  passwordToggle?: string;
};

Behavior notes

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.

More Auth blocks

View all Auth
PRO

auth17

Signed Out Confirmation

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.

PRO

auth23

Account Locked

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.

FREE

auth4

Forgot Password Request

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.

FREE

auth5

Set New Password

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.

PRO

auth46

Confirm It's You

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.

PRO

auth21

Passkey Sign In

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.