Skip to main content

custom_session

Function custom_session 

Source
pub fn custom_session<F>(
    options: CustomSessionOptions,
    handler: F,
) -> AuthPlugin
where F: for<'a> Fn(CustomSessionInput, CustomSessionContext<'a>) -> CustomSessionFuture<'a> + Send + Sync + 'static,
Expand description

Create a custom session plugin with options and request-aware handler.