> ## Documentation Index
> Fetch the complete documentation index at: https://lmm.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 查看登录会话

> 🔐 需要面板 Access Token；PAT 不能管理浏览器登录会话。只返回当前 user_auth_version 的有效会话，当前会话优先，最多 100 条。顶层 session_auto_logout 返回用户的自动登出开关，所有账号默认开启。开启时撤销 created_at 严格早于当前时间减去 7 天的会话，刷新令牌不重置登录时间。此功能由默认 Go 后端提供。



## OpenAPI

````yaml /docs/openapi/api.json get /api/user/sessions
openapi: 3.0.1
info:
  title: 后台管理接口
  description: ''
  version: 1.0.0
servers:
  - url: https://api.lmm.best
    description: 生产环境
security:
  - Combination343: []
  - Combination1243: []
tags:
  - name: 系统
  - name: 用户登陆注册
    x-group: 登录与注册
  - name: OAuth
  - name: 用户管理
  - name: 充值
  - name: 两步验证
  - name: 安全验证
  - name: 渠道管理
  - name: 令牌管理
  - name: 兑换码
  - name: 日志
  - name: 数据统计
  - name: 分组
  - name: 任务
  - name: 供应商
  - name: 模型管理
  - name: 系统设置
paths:
  /api/user/sessions:
    get:
      tags:
        - 用户登陆注册
      summary: 查看登录会话
      description: >-
        🔐 需要面板 Access Token；PAT 不能管理浏览器登录会话。只返回当前 user_auth_version
        的有效会话，当前会话优先，最多 100 条。顶层 session_auto_logout 返回用户的自动登出开关，所有账号默认开启。开启时撤销
        created_at 严格早于当前时间减去 7 天的会话，刷新令牌不重置登录时间。此功能由默认 Go 后端提供。
      parameters: []
      responses:
        '200':
          description: 返回当前鉴权版本的有效登录会话及自动登出开关
          headers: {}
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - message
                  - data
                  - session_auto_logout
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                  session_auto_logout:
                    type: boolean
                    default: true
      deprecated: false
      security:
        - AccessToken1: []
components:
  securitySchemes:
    AccessToken1:
      type: http
      scheme: bearer
      bearerFormat: JWT or PAT
      description: 面板短期 JWT 或 User.AccessToken PAT；不再要求 New-Api-User

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.