Skip to main content

create_cookie

Function create_cookie 

Source
pub fn create_cookie(
    name: &str,
    value: &str,
    max_age_seconds: i64,
    config: &AuthConfig,
) -> AuthResult<String>
Expand description

Build a Set-Cookie header value for an arbitrary cookie using the auth config’s session cookie attributes for consistency.