Passkey Sign In

Sign in with a passkey

Use your fingerprint, face, or device PIN to sign in securely — no password required.

Don't have an account? Sign up

About this block

Passkey Sign InPRO

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.

Auth21: Passkey Sign In

Full-height passwordless sign-in screen: a centered fingerprint icon and heading over a bordered card with a full-width "Continue with passkey" button, an optional divider, and a password fallback button beneath it. Built for WebAuthn and biometric authentication flows.

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.

Upgrade Now

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/auth21?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

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

This installs the block to components/beste/block/auth21.tsx and the button and field shadcn/ui primitives it's built on.

Quick start

The installed file exports auth21Demo alongside the block: the exact props behind the preview above. Spread it to get a working passkey sign-in screen in one line.

tsx
import { Auth21, auth21Demo } from "@/components/beste/block/auth21";

export default function SignInPage() {
  return <Auth21 {...auth21Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Fingerprint } from "lucide-react";
import { Auth21 } from "@/components/beste/block/auth21";

export default function SignInPage() {
  return (
    <Auth21
      icon={<Fingerprint className="size-7" />}
      heading="Sign in with a passkey"
      description="Use your fingerprint, face, or device PIN to sign in securely."
      passkeyButton={{ label: "Continue with passkey", href: "/auth/passkey" }}
      alternativeButton={{ label: "Sign in with password", href: "/sign-in" }}
      signupPrompt={{ text: "Don't have an account?", linkLabel: "Sign up", href: "/sign-up" }}
      labels={{ divider: "or" }}
    />
  );
}

Props

PropTypeDefaultDescription
iconReact.ReactNode–Icon rendered in a muted circle above the heading
headingstring–Screen title
descriptionstring–Subtext below the heading
passkeyButton{ label: string; href: string }–Primary "Continue with passkey" action; hidden entirely when not set
alternativeButton{ label: string; href: string }–Outline fallback action below the divider; hidden entirely when not set
signupPrompt{ text: string; linkLabel: string; href: string }–Line below the card; hidden entirely when not set
labelsobject{}Divider copy, see below
classNamestring–Extra classes for the outer <section>
ts
type Auth21Labels = { divider?: string };

Behavior notes

  • The passkey button always renders a Fingerprint icon inline before its label, independent of the icon prop used for the header circle above the card.
  • The divider between the two buttons (built on FieldSeparator) renders only when labels.divider is set; omitting it collapses the card to just the passkey button stacked directly above the alternative button.
  • Both passkeyButton and alternativeButton render as plain asChild next/link anchors; there is no navigator.credentials.get() call or any other WebAuthn wiring, so triggering the actual passkey ceremony is left to the integrator.
  • signupPrompt renders through FieldDescription, matching the typographic treatment other auth cards in this family use for their bottom-of-card prompt line.

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
FREE

auth6

Magic Link Sign In

PRO

auth8

Welcome Back Unlock

FREE

auth30

PIN Keypad Unlock

Get Pro access