---
title: "Logout All Devices"
method: POST
path: "/api/auth/logout-all"
tags: ["auth"]
---

# Logout All Devices

`POST /api/auth/logout-all`

## Request

- Base URL: `https://fojin.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fojin.app/api/auth/logout-all`
- Auth: HTTP bearer

退出当前账号在所有设备上的登录，返回一张给当前设备用的新 JWT。

Tokens live 30 days and cannot be revoked individually (no server-side
session store), so this is the escape hatch for "I left myself signed in
somewhere". Deliberately requires no password: someone who wants to secure
a session they can no longer reach should not have to stop and remember a
password first — and holding a valid token already proves as much as the
password would.

The current device is not logged out: it swaps in the returned token.

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
