Session List
Where the account is signed in: browser and OS, IP, location and last activity per device, with sign out per row and everywhere else after a confirmation.
import { SessionList } from "pleate/session-list";Active sessions
Where you're signed in
- Safari on macOSThis device84.12.201.7 · Milan, ItalyActive now
- Plate app on iOS 1984.12.201.33 · Milan, ItalyLast active 25 minutes ago
- Chrome on Windows151.40.18.92 · Rome, ItalyLast active yesterday
- Firefox on Ubuntu2a02:ab88:7::1f · Berlin, GermanyLast active last week
Props
- sessions
The current one comes first, marked "This device".
{ id, browser, os, mobile, ip?, location?, lastSeenAt, current }[]- onRevoke
Per row; spins while the promise runs.
(id) => void | Promise- onRevokeOthers
After an AlertDialog confirmation.
() => void | Promise- revokingIds / loading
External busy rows; skeleton while empty.
string[] / boolean- showTitle / now / locale
Heading and time formatting.
boolean / Date / string- labels
Every visible string, for your wording or translation.
object
Accessibility
- Each Sign out button names the session ("Sign out Chrome on Windows").
- Signing out everywhere asks first, with focus on Cancel.