Sign-In Error

We couldn't sign you in

Something went wrong while signing you in. Please try again in a moment.

Error code: AUTH_4012

Still stuck? Contact support

About this block

Sign-In ErrorPRO

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.

Auth27: Sign-In Error

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.

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

Base UI flavor

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

Quick start

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.

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

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

Props

PropTypeDefaultDescription
iconReact.ReactNodeIcon rendered in a destructive-tinted circle above the heading
headingstringScreen title
descriptionstringExplanation below the heading
labelsobject{}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
classNamestringExtra classes for the outer <section>
ts
type Auth27Labels = { errorDetail?: string };

Behavior notes

  • The icon circle uses 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.
  • Both 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.

More Auth blocks

View all Auth
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

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

auth18

New Sign-In Security Alert

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.

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.

PRO

auth19

OAuth Authorize App

Full-height OAuth consent screen showing the requesting app, the permissions it needs as a scope list, and authorize and cancel actions. Perfect for third-party app authorization and developer platform connect flows.

PRO

auth8

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.