撤销当前登录会话
用户登陆注册
撤销当前登录会话
撤销明确的 Bearer/X-Auth-Session 会话;仅当 HttpOnly Refresh Cookie 属于同一 SID 时才撤销并清除 Cookie,避免跨标签页误踢其他账号。SESSION_COOKIE_SECURE=true 时要求同源或可信 Origin,false/未配置时保持本地 HTTP 兼容模式。
POST
撤销当前登录会话
请求头
可选的预期登录会话 SID
响应
200
成功
最后修改于 2026年9月23日
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.lmm.best/api/user/auth/logoutimport requests
url = "https://api.lmm.best/api/user/auth/logout"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/user/auth/logout', 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/auth/logout"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}撤销明确的 Bearer/X-Auth-Session 会话;仅当 HttpOnly Refresh Cookie 属于同一 SID 时才撤销并清除 Cookie,避免跨标签页误踢其他账号。SESSION_COOKIE_SECURE=true 时要求同源或可信 Origin,false/未配置时保持本地 HTTP 兼容模式。
curl --request POST \
--url https://api.lmm.best/api/user/auth/logoutimport requests
url = "https://api.lmm.best/api/user/auth/logout"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.lmm.best/api/user/auth/logout', 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/auth/logout"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}可选的预期登录会话 SID
成功