Skip to main content

tuitbot_server/auth/
mod.rs

1//! Authentication layer for the tuitbot API server.
2//!
3//! Supports two authentication strategies:
4//! - **Bearer token**: File-based token for Tauri desktop and API/MCP clients
5//! - **Session cookie**: Passphrase-based login for web/LAN access
6
7pub mod middleware;
8pub mod routes;
9pub mod token;
10
11pub use middleware::auth_middleware;
12pub use token::ensure_api_token;