Skip to content
rw3iss Auth

UserProfileCard

form @rw3iss/auth-client/preact/forms/UserProfileCard framework-adapters/preact/components/forms/UserProfileCard.tsx ↗

Identity card showing the current user — avatar, name, email, org context, roles, and impersonation banner when active. Strictly a read-only view of the AuthClient snapshot; renders nothing when anonymous (use under <ProtectedRoute>).

Useful as a header drop-in or as the body of a /settings page.

Usage

import { UserProfileCard } from '@rw3iss/auth-client/preact/forms';
<UserProfileCard />

Props

NameTypeDescription
clientAuthClient
showRolesbooleanShow roles + permissions counts. Default true.
classNamestring