aboutsummaryrefslogtreecommitdiff
path: root/auth/logout.md
blob: 4d0d469c067df96559b089743701fdd85162245a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

   

POST /auth/logout

back to auth /// home

Kill your yourself. Requires a valid session token obviously.

Request

No sexy json derulo body needed. Just send the token in the header:

Authorization: Bearer <token>

Success Response

{
  "success": true,
  "message": "Logged out successfully"
}

Error Response

Code When
401 no token provided or token is invalid/expired