technitium 0.4.0

Typed async Rust client for the Technitium DNS Server API
Documentation
# Logout

## Endpoint

`/api/user/logout`

**Obsolete Path:** `/api/logout`

## Method

GET

## Description

Ends the session generated by the `login` or the `createToken` call. The token will no longer be valid after calling this API.

## Parameters

| Name | Type | Required | Conditional | Description |
|------|------|----------|-------------|-------------|
| `token` | string | Yes | - | The session token generated by the `login` or the `createToken` call. |

## Authentication

Requires a valid token (session token from login or API token from createToken).

## Response Fields

| Field | Type | Description |
|-------|------|-------------|
| `status` | string | `"ok"` on success. |

## Conditional Logic Notes

- This endpoint works for both session tokens (from login) and API tokens (from createToken).
- After calling this endpoint, the provided token is permanently invalidated.

## Edge Cases

- The obsolete path `/api/logout` is still supported but deprecated.
- Calling logout with an already-invalidated token may produce an error.
- Logging out an API token effectively deletes it permanently since API tokens are non-expiring and cannot be regenerated with the same value.