撤销其他登录会话
curl --request POST \
--url https://api.lmm.best/api/user/sessions/revoke-others \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/api/user/sessions/revoke-others"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/api/user/sessions/revoke-others', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/sessions/revoke-others"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}用户登陆注册
撤销其他登录会话
🔐 保留当前登录会话并撤销该用户的其他会话,包含列表不可见的旧 user_auth_version active 残留行
POST
/
api
/
user
/
sessions
/
revoke-others
撤销其他登录会话
curl --request POST \
--url https://api.lmm.best/api/user/sessions/revoke-others \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.lmm.best/api/user/sessions/revoke-others"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.lmm.best/api/user/sessions/revoke-others', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/sessions/revoke-others"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}授权
面板短期 JWT 或 User.AccessToken PAT;不再要求 New-Api-User
响应
200
成功
最后修改于 2026年9月23日
⌘I