Active Sessions
Active sessions: current device, suspicious sign-ins, revoke access. Pro · Account and access › Security and sign-in
Installation
npx valyro-cli@latest login
npx valyro-cli@latest add active-sessions
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { ActiveSessions } from 'valyro-ui-pro';
Props
| Prop | Type | Default | |
|---|---|---|---|
sessions * | AccountSession[] | Signed-in sessions; the current one first reads best. | |
onRevoke | (id: string) => void | Called with the id of a session to sign out (confirm first if it matters). | |
onRevokeOthers | () => void | Shows a button that signs out every session but the current one. | |
hideNotice | boolean | false | Hides the callout above the list. |
actions | ReactNode | Extra content in the header, after the unusual count. | |
headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | 2 | Level of the title (default 2). |
locale | string | BCP 47 locale for dates. | |
labels | Partial<ActiveSessionsLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Related components
- Two Factor Setup — Two-factor setup: method, QR code or phone, code verification
- Access Tokens — Personal access tokens: scope, last used, revoke
- Age Gate — Age verification: date of birth, remember me, deny under the limit
- Profile Details — Profile: completeness, verified contacts, fields
- Address Book — Address book: home, work, default addresses and actions
- Social Profiles — Linked social profiles: reorder, verify, copy link
- Settings Panel — Settings page: section navigation, unsaved-changes bar, danger zone
- Permission Matrix — Roles and permissions matrix: inheritance, locks, bulk toggles, draft changes
- Audit Log — Activity log: filters, field diffs, CSV export, load more
- Privacy Center — Privacy center: score, setting groups, protection counters
- Support Center — Support: contact channels with status, tickets with filters
Previous: Two Factor Setup · Next: Access Tokens · All Account and access