Users
UsersSessions
Active session management panel showing a user's current and past sessions.
UsersSessions
Renders a table of a user's active and recent sessions with device info, IP address, last-seen timestamp, and a revoke action per session.
Components
<XAdminUsersSessions />
Displays all active sessions for a given user with the ability to revoke individual sessions or all sessions at once.
<XAdminUsersSessions :userId="userId" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
userId | string | — | ID of the user whose sessions to list |
endpoint | string | '/api/admin/users' | Base API endpoint |
loading | boolean | false | Show loading skeleton |
showRevokeAll | boolean | true | Show "Revoke all sessions" button |
Types
interface UserSession {
id: string
ipAddress: string
userAgent: string
lastSeen: string | Date
createdAt: string | Date
isCurrent?: boolean
}
AI Context
component: XAdminUsersSessions
package: "@xenterprises/nuxt-x-app-admin"
category: Users
use-when: Viewing and revoking a user's active authentication sessions from an admin panel
