Skip to main content

SessionLayer

Type Alias SessionLayer 

Source
pub type SessionLayer<Store> = SessionManagerLayer<Store, SignedCookie>;
Available on crate feature auth only.
Expand description

A signed-cookie session layer built from resolved SessionConfig and a tower_sessions::SessionStore.

This is tower_sessions::SessionManagerLayer<Store, tower_sessions::service::SignedCookie> – the upstream layer with the SignedCookie controller. Apply it on an Axum router with .layer(...).

Aliased Type§

pub struct SessionLayer<Store> { /* private fields */ }