| 88 | /// Top-level authentication configuration, typically loaded from the relay's TOML config file. |
| 89 | #[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)] |
| 90 | pub struct AuthConfig { |
| 91 | /// Per-user and per-IP rate limit thresholds. |
| 92 | #[serde(default)] |
| 93 | pub rate_limits: RateLimitConfig, |
| 94 | } |
| 95 | |
| 96 | /// Simplified auth service — NIP-42 and NIP-98 only. |
| 97 | /// No JWT validation, no token management, no IdP runtime dependency. |
nothing calls this directly
no outgoing calls
no test coverage detected