Skip to main content
@glinr/theauth-ui-headless ships account components with behavior and accessibility built in and no visual styling. Every user-facing string comes from a required labels prop, and every part carries a data-part attribute plus an optional classNames slot, so you apply your own styles (Tailwind, CSS modules or anything else). If you want ready-made styling instead, use UI components. The package wraps the query hooks from @glinr/theauth-react/query, so it must render inside TheAuthQueryProvider.

What it includes

Install

terminal
Peer dependencies are react (18 or newer), @tanstack/react-query (5 or newer), @glinr/theauth-react and @glinr/theauth-client. npm install and yarn add work the same way.

Example

This page renders a session list. Clicks on revoke go through useStepUpRetry, so a revoke that needs fresh authentication opens the dialog and retries once the user confirms.
app/settings/sessions.tsx
labels.error(code) receives a stable code such as invalid_expiry or invalid_credentials, so map it to your own copy. Components also set data-error-code on the alert element, which is useful in tests.
  • UI components for prebuilt, Tailwind-styled forms.
  • React for TheAuthProvider and the hooks these components use.
  • Client SDK for the typed client behind createTheAuthGoClient.
Last modified on October 18, 2026