From dd0c34955435c072456c48146f84b451c92ab930 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 19 Jan 2024 12:54:08 -0500 Subject: [PATCH] examples: update `axum-session` because old version was yanked (#2205) --- examples/sso_auth_axum/Cargo.toml | 6 +++--- examples/sso_auth_axum/src/main.rs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/sso_auth_axum/Cargo.toml b/examples/sso_auth_axum/Cargo.toml index c540e5b00b..6630aebe5f 100644 --- a/examples/sso_auth_axum/Cargo.toml +++ b/examples/sso_auth_axum/Cargo.toml @@ -27,16 +27,16 @@ tower = { version = "0.4.13", optional = true } tower-http = { version = "0.4", features = ["fs"], optional = true } tokio = { version = "1.22.0", features = ["full"], optional = true } http = { version = "0.2.8" } -sqlx = { version = "0.6.2", features = [ +sqlx = { version = "0.7", features = [ "runtime-tokio-rustls", "sqlite", ], optional = true } thiserror = "1.0.38" wasm-bindgen = "0.2" -axum_session_auth = { version = "0.2.1", features = [ +axum_session_auth = { version = "0.9", features = [ "sqlite-rustls", ], optional = true } -axum_session = { version = "0.2.3", features = [ +axum_session = { version = "0.9", features = [ "sqlite-rustls", ], optional = true } async-trait = { version = "0.1.64", optional = true } diff --git a/examples/sso_auth_axum/src/main.rs b/examples/sso_auth_axum/src/main.rs index 1a01555643..49b7e74f6e 100644 --- a/examples/sso_auth_axum/src/main.rs +++ b/examples/sso_auth_axum/src/main.rs @@ -69,8 +69,7 @@ if #[cfg(feature = "ssr")] { .with_security_mode(SecurityMode::PerSession); let auth_config = AuthConfig::::default(); - let session_store = SessionStore::::new(Some(pool.clone().into()), session_config); - session_store.initiate().await.unwrap(); + let session_store = SessionStore::::new(Some(pool.clone().into()), session_config).await.unwrap(); sqlx::migrate!() .run(&pool)