Skip to content

Commit

Permalink
Switch to Key::from
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Myers <[email protected]>
  • Loading branch information
Elizafox committed Apr 1, 2024
1 parent bece10c commit d05abfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d05abfa

Please sign in to comment.