---
# System prepended metadata

title: 刪除Token
tags: [認證]

---

# 刪除Token

**將一個原本合法的Token，刪除變為無法使用**

#### 網址
{domain}/smart-drawer/auth/destory-token

#### HTTP Method
DELETE

#### 認證方式
Authoriztion : Bearer Token

#### 傳入參數

|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
|無|


#### 回傳參數

|Name|Type|說明|
| ------------ | ------------ |------------ |
|result  |string |message |


#### Request Authoriztion
```json
{
    Bearer Token : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9oaWxsY29ycC12ZXIxLmxvY2FsLmNvbVwvYXBpXC9hdXRoXC9nZXQtdG9rZW4iLCJpYXQiOjE1ODg2Njg3MjUsImV4cCI6MTU4ODg4NDcyNSwibmJmIjoxNTg4NjY4NzI1LCJqdGkiOiI4SFJxQ1RMOHJUbXRmaFVaIiwic3ViIjoyLCJwcnYiOiIyODgyZjdjYzkzNWUwNTAwMDY3YzYwMTQ1MWZhZjljYzUyNTk4YzY2In0.qZ2m6vNgm0Q5t-nA31z1XkL5l8Lluz-UWQoXcAdjNZM"
}
```

#### Json Example
Request
```json
{

}
```

Response
```json
{
    "status": true,
    "message": "Successfully logged out"
}
```

Response Json Error
```json
{
    "status": false,
    "message": "Token is Invalid",
    "errors": []
}
```