Skip to main content

maybe_get_authenticated_session

Function maybe_get_authenticated_session 

Source
pub(crate) async fn maybe_get_authenticated_session(
    session: Option<&Session>,
) -> Option<(&Session, TowerSessionData)>
Expand description

Attempts to retrieve session data from a TowerSession, if available. Session data is present only if an authenticated session has been established via handle_login.