ValyroUI Русская версия

Access Tokens

Personal access tokens: scope, last used, revoke. Pro · Account and access › Security and sign-in

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add access-tokens
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { AccessTokens } from 'valyro-ui-pro';

Props

PropTypeDefault
tokens *AccessToken[]The user's tokens.
expandedstring[]Ids of the expanded rows (controlled).
defaultExpandedstring[]Initial expanded when uncontrolled.
onExpandedChange(expanded: string[]) => voidCalled with the new expanded when it changes.
onCreate() => voidShows the "New token" button.
onRegenerate(id: string) => voidShows "Regenerate" in an expanded row.
onRevoke(id: string) => voidShows "Revoke" in an expanded row (confirm first).
headingLevel1 | 2 | 3 | 4 | 5 | 62Level of the title (default 2).
localestringBCP 47 locale for dates and counts.
labelsPartial<AccessTokensLabels>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
  • Active Sessions — Active sessions: current device, suspicious sign-ins, revoke access
  • 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: Active Sessions · Next: Age Gate · All Account and access