From 453911e6fc1d05592fd5a7db3637c491c3486211 Mon Sep 17 00:00:00 2001 From: "Andrew Wheeler(Genusis)" Date: Mon, 20 Nov 2023 20:33:31 -0500 Subject: [PATCH] examples: updated axum session to latest 0.9 in examples (#2049) * updated axum_database_sessions to axum_session along with axum_sessions_auth to axum_session_auth * updated to axum session 0.9 --- examples/session_auth_axum/Cargo.toml | 6 +++--- examples/session_auth_axum/Todos.db | Bin 40960 -> 40960 bytes examples/session_auth_axum/src/main.rs | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/session_auth_axum/Cargo.toml b/examples/session_auth_axum/Cargo.toml index 0efed27319..0b90ac6a65 100644 --- a/examples/session_auth_axum/Cargo.toml +++ b/examples/session_auth_axum/Cargo.toml @@ -25,16 +25,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.2", 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.0", features = [ "sqlite-rustls", ], optional = true } -axum_session = { version = "0.2.3", features = [ +axum_session = { version = "0.9.0", features = [ "sqlite-rustls", ], optional = true } bcrypt = { version = "0.14", optional = true } diff --git a/examples/session_auth_axum/Todos.db b/examples/session_auth_axum/Todos.db index 763ee63fa553b389f7faea823e40f0c9e72ea829..df5f7158d3af3828e608dc893e65260e667a775a 100644 GIT binary patch delta 584 zcmZoTz|?SnX@WE(&qNt#c^(G6v{$_RKNvW<;u-iJ^6%v>;ak9y&Fje{$=%Hrzp?Ql zCs&guC%d?~IAe?9C$=6&m61-dr3d#Ao1v#lDsVNEy zPX7Kru8w{>ypv_Q4S`DhxSe@7Jjy`w7mo~(1lzRP zop&!28zcW52L3sl1sx{w>nAa?gtAmxSeT_Gnp-C7rWz$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^WqCKDM*lsnZbd z9!f)ru_5N6te!D<>@V?}8<$?n78ZV%EzGEzl^C?^Zu@>2{upPwJGB<`;?m$q?7cP} zjH0++9pl5j<@aSjGLaq&$5yA0!Wn8pSsh9S=*P?i|4}nV_uz?N3#Y!A`tami^aKk8 zAOHafKmY;|fB*y_aGwSC9}k8~!Ryu3mYZU3WlOFaNmVwKEmN+fjEc;(im~NdhMUw= z?#G}0@hU(4$i$Bm9-oc7PTPrRu3noRoP1>Bnxg5lV#$hHRMHvK%;?&jVW^s}yi6td ziEE41o0l2wC*G&f?3sZ>l;G2~QI zP4Q9V$`(~vu2|`+>FA1EO{a+Fu^!EF!tc<;{TU@15U=)6n`wTHMui$bWIPSftc8fTXQ{RQ=hiWNRG0YzY?WD-Z(@IsdQpqhXDOX&J&vSu|))%o1&yth<0*LN?bt(?m?inT?jnZB|#=Vi@}7tSea zesiI|T7S({UbuW|rTd-%{zn=lRm&LsFE4bj|9>q+zkUE&P-O@}00Izz00bZa0SG_< z0uX=z1nw;m4xEnAbOOKrKNkHzz5k!SVSxYyAOHafKmY;|fB*y_009U<;6WFNj0Iw% z|F2cU6Jj71@&6emKmQjVdC;4N`a=K$5P$##AOHafKmY;|fB*y_a4&(W=*M*Z{|zDf zZuAZQb+1_DK>z{}fB*y_009U<00Izz00bcL0|-174hxaf6Z-t(;>bt!(-~cTGDNvQ b;kk!o(%!8|lrrzmQz-8#o|nBVPt(2yW{sPn diff --git a/examples/session_auth_axum/src/main.rs b/examples/session_auth_axum/src/main.rs index 42dffc3416..8912e2fe45 100644 --- a/examples/session_auth_axum/src/main.rs +++ b/examples/session_auth_axum/src/main.rs @@ -56,8 +56,7 @@ if #[cfg(feature = "ssr")] { // Auth section let session_config = SessionConfig::default().with_table_name("axum_sessions"); 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)