Skip to main content

Module token

Module token 

Source
Expand description

File-based bearer token management.

On first start, generates a random 256-bit token (hex-encoded) and writes it to ~/.tuitbot/api_token. Tauri and CLI clients read this file directly.

Functionsยง

ensure_api_token
Ensure the API token file exists, creating one if needed.