Full-height authentication error screen with a warning icon, an explanation, an optional error code, and try-again, back, and contact-support actions. Perfect for failed sign-in and OAuth callback errors.
Full-height authentication error screen: a warning icon in a destructive-tinted circle, a heading and explanation, an optional monospace error-code chip, a try-again and back-to-sign-in pair of actions, and a contact-support line. Built for failed sign-in and OAuth callback error states.
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/auth27?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/auth27?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/auth27.tsx and the button shadcn/ui primitive it's built on.
The installed file exports auth27Demo alongside the block: the exact props behind the preview above. Spread it to get a working error screen in one line.
import { Auth27, auth27Demo } from "@/components/beste/block/auth27";
export default function SignInErrorPage() {
return <Auth27 {...auth27Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { TriangleAlert } from "lucide-react";
import { Auth27 } from "@/components/beste/block/auth27";
export default function SignInErrorPage() {
return (
<Auth27
icon={<TriangleAlert className="size-7" />}
heading="We couldn't sign you in"
description="Something went wrong while signing you in. Please try again."
labels={{ errorDetail: "Error code: AUTH_4012" }}
tryAgainButton={{ label: "Try again", href: "/sign-in" }}
backButton={{ label: "Back to sign in", href: "/sign-in" }}
supportPrompt={{ text: "Still stuck?", linkLabel: "Contact support", href: "/support" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
icon | React.ReactNode | – | Icon rendered in a destructive-tinted circle above the heading |
heading | string | – | Screen title |
description | string | – | Explanation below the heading |
labels | object | {} | Error-code copy, see below |
tryAgainButton | { label: string; href: string } | – | Primary action; hidden entirely when not set |
backButton | { label: string; href: string } | – | Ghost action below the primary button; hidden entirely when not set |
supportPrompt | { text: string; linkLabel: string; href: string } | – | Line below the actions; hidden entirely when not set |
className | string | – | Extra classes for the outer <section> |
type Auth27Labels = { errorDetail?: string };bg-destructive/10 text-destructive, the only auth block in this set to tint its header icon with the destructive color instead of the neutral muted circle the rest of the family uses.labels.errorDetail (e.g. the demo's "Error code: AUTH_4012") renders as a small bordered, monospace, pill-like chip between the description and the action buttons; it's a single free-form string, not a structured { code, message } shape, so any label text works, not just an error code.tryAgainButton and backButton render as plain asChild next/link anchors with no retry logic or error-state clearing wired in; re-attempting sign-in is entirely the integrator's responsibility.tryAgainButton and backButton are independent booleans by presence, so a variant that only offers one action (e.g. just "Back to sign in") is possible by omitting the other.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.
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.
auth18
Full-height security notification screen listing the device, location, and time of a new sign-in, with confirm-it-was-me and secure-my-account actions. Perfect for suspicious-login alerts and account safety prompts.
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.
auth8
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.
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.