Skip to content

Commit

Permalink
examples: update axum-session because old version was yanked (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Jan 19, 2024
1 parent dd5a0ae commit dd0c349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions examples/sso_auth_axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
3 changes: 1 addition & 2 deletions examples/sso_auth_axum/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ if #[cfg(feature = "ssr")] {
.with_security_mode(SecurityMode::PerSession);

let auth_config = AuthConfig::<i64>::default();
let session_store = SessionStore::<SessionSqlitePool>::new(Some(pool.clone().into()), session_config);
session_store.initiate().await.unwrap();
let session_store = SessionStore::<SessionSqlitePool>::new(Some(pool.clone().into()), session_config).await.unwrap();

sqlx::migrate!()
.run(&pool)
Expand Down

0 comments on commit dd0c349

Please sign in to comment.