X Enterprises
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

PropTypeDefaultDescription
userIdstringID of the user whose sessions to list
endpointstring'/api/admin/users'Base API endpoint
loadingbooleanfalseShow loading skeleton
showRevokeAllbooleantrueShow "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
Copyright © 2026