UserProfileCard
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
| Name | Type | Description |
|---|---|---|
client | AuthClient | |
showRoles | boolean | Show roles + permissions counts. Default true. |
className | string |