From d05abfae101ed85e8822a9adcca0c67994678316 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sun, 31 Mar 2024 19:28:03 -0700 Subject: [PATCH] Switch to Key::from Signed-off-by: Elizabeth Myers --- src/web/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/app.rs b/src/web/app.rs index 1d35beb..a0b5bed 100644 --- a/src/web/app.rs +++ b/src/web/app.rs @@ -124,7 +124,7 @@ impl App { let caching_store = CachingSessionStore::new(moka_store, redis_store); let session_layer = SessionManagerLayer::new(caching_store) .with_expiry(Expiry::OnInactivity(Duration::days(1))) - .with_private(Key::derive_from(&self.state.env.csrf_key)); + .with_private(Key::from(&self.state.env.csrf_key)); let backend = Backend::new(self.state.db.clone()); let auth_layer = AuthManagerLayerBuilder::new(backend, session_layer.clone()).build();