fix(api): drop redundant dev-deps; fix server AppState for cookie_secure; add logout + illegal-transition tests

This commit is contained in:
2026-06-02 15:04:07 +02:00
parent 5135aeee6c
commit 642f709bbe
5 changed files with 101 additions and 2 deletions
+2
View File
@@ -20,6 +20,8 @@ pub async fn run(config: Config) -> anyhow::Result<()> {
let state = AppState {
db,
app_name: config.app_name.clone(),
// Wired to config in the auth CLI task; Secure by default.
cookie_secure: true,
};
let listener = TcpListener::bind(&config.bind_addr)
+1
View File
@@ -15,6 +15,7 @@ async fn serves_health_live_over_tcp() {
let state = AppState {
db,
app_name: "Test".to_string(),
cookie_secure: false,
};
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();