Deletes the user's current session. This endpoint must be accessed with valid JWT authorization header.
Session deleted.
Unauthorized access. Invalid credentials used.
Access forbidden.
const logout = await api.account.logout(); // the request does not return any fields but // you can confirm the success using the status code console.log(logout.response.status); // 204
{- "status": 401,
- "title": "string",
- "detail": "string",
- "instance": "string"
}