BIU UI/Blocks/Auth Screen
Live ScreenSplit & CenteredOAuth + 6-Digit OTP

Auth Screen

Complete authentication flow supporting SSO sign-in, email/password sign-in & sign-up, password reset, and 6-digit OTP verification powered by BIU UI's gliding OtpInput.

packages/ui/src/components/auth-screen.tsx

Sign in to BIU Cloud

Welcome back — continue with SSO or your work credentials.

or
New to BIU Cloud?

API Reference

All props accepted by AuthScreen. Supply async handlers to connect real authentication backends.

PropTypeDefaultDescription
variant'split' | 'centered''split'Layout geometry: two-column split with brand panel or centered card.
defaultMode'sign-in' | 'sign-up' | 'otp' | 'forgot''sign-in'Initial authentication flow view shown on mount.
defaultEmailstring—Pre-filled email address for sign-in, reset, or OTP verification.
brandNamestring'BIU Cloud'Product or workspace name displayed in headers and quotes.
demobooleanfalseEnables interactive demo defaults and local preview OTP handling.
demoOtpCodestring'123456'Verification code accepted in demo OTP mode.
onSignIn(payload) => unknown—Sign-in handler; return false or reject to display an inline error.
onSignUp(payload) => unknown—Account creation handler transitioning to OTP verification on success.
onVerifyOtp(payload) => unknown—Verifies the 6-digit OTP code; return false or reject on mismatch.
onSendResetLink(payload) => unknown—Dispatches a password reset link for the entered work email.
onOAuth(provider: 'github' | 'google') => void—Fired when the user clicks an OAuth SSO button.
headingAs'h1' | 'h2''h1'Heading tag for the active auth card title.

Included Primitives

Installing auth-screen automatically pulls these BIU UI primitives via the Registry: