reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
brandapp-ui8
Session Expired Dialog
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

Session Modalbrandapp-ui example

Session Expired Dialog

A local re-auth dialog simulation with manual expiry, optional dismissal, and a simulated sign-in action. Automatic session/401 detection belongs to the copied Surface.

authsessiondialogglobal
opt block add session-expired-dialog

APIs used

DialogRootDialogPanelDialogDescriptionButton

Live preview

Change the width and theme, then interact with the components.

1024px

forceReauth 옵션

true(기본)이면 backdrop/ESC dismiss 가 비활성화되어 사용자가 반드시 재로그인을 거쳐야 합니다.

트리거

실제 환경에서는 (1) authClient.useSession()이 truthy→falsy 로 전이되거나 (2) 보호된 fetch 헬퍼가 401 응답을 받아 notifySessionExpired()(또는 withSessionExpiry(fetch)가 401을 받아) 이벤트를 디스패치할 때 자동으로 열립니다.

이 데모는 트리거 버튼으로 모달을 즉시 열어 비교합니다. 실제 Surface는 자동 감지 + window 이벤트로만 열립니다.

Install and import

Related docs

Install

opt block add session-expired-dialog

Import

import { SessionExpiredDialog } from "@/components/surfaces/session-expired-dialog";

Related Examples

brandapp-ui

Reopt User Menu

Examples

A local user-menu simulation with loading, signed-out, sign-in, and sign-out transitions. The copied ReoptUserMenu Surface derives these states from the real session.

brandapp-ui

Sign In Gate

Examples

A local simulation of a protected-content gate with loading, signed-out, and signed-in states. Its sign-in CTA changes only the preview state.

brandapp-ui

BrandApp Control Center

Examples

SDK control center showing server-side verifier checks, auth health, secret rotation, EAV schema remediation, AI credit guardrails, webhook replay, terms publication, and lazy server-client boundaries.

PreviousSign In GateNextReopt AI Chat