Skip to main content

Module auth

Module auth 

Source
Expand description

Authentication layer for the tuitbot API server.

Supports two authentication strategies:

  • Bearer token: File-based token for Tauri desktop and API/MCP clients
  • Session cookie: Passphrase-based login for web/LAN access

Re-exports§

pub use middleware::auth_middleware;
pub use token::ensure_api_token;

Modules§

middleware
Multi-strategy authentication middleware.
routes
Authentication HTTP endpoints.
token
File-based bearer token management.