diff --git a/server/Cargo.toml b/server/Cargo.toml index a2b8810..ee671f1 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -18,8 +18,8 @@ thiserror = "1.0" rand = "0.8" dotenvy = "0.15" markdown = "0.3" -axum-oidc = "0.2.1" -tower-sessions = "0.7.0" +axum-oidc = "0.2.2" +tower-sessions = "0.9.0" tower = "0.4.13" log = "0.4" env_logger = "0.10" diff --git a/server/src/main.rs b/server/src/main.rs index d811683..152e92f 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -125,12 +125,7 @@ async fn main() { .collect::>(); let session_store = MemoryStore::default(); - let session_service = ServiceBuilder::new() - .layer(HandleErrorLayer::new(|e: BoxError| async { - dbg!("{:?}", e); - StatusCode::BAD_REQUEST - })) - .layer(SessionManagerLayer::new(session_store).with_same_site(SameSite::Lax)); + let session_service = SessionManagerLayer::new(session_store).with_same_site(SameSite::Lax); let oidc_login_service = ServiceBuilder::new() .layer(HandleErrorLayer::new(|e: MiddlewareError| async {