AscendingCreations / AxumSession

Axum Session Management Libraries that use Sqlx
MIT License
142 stars 29 forks source link

Allowing configuration of cookie attributes #5

Closed apps4uco closed 2 years ago

apps4uco commented 2 years ago

Partly implementing Issue #4 Session can be configured by:

let session_config = AxumSessionConfig::default()
        .with_table_name("session")
        .with_cookie_name("a")
        .with_max_age(Some(chrono::Duration::minutes(15)))
        .with_secure(false)
        ;

http_only is on by default

genusistimelord commented 2 years ago

Looks good please fix or add the following and I will merge this as it is a good start. @apps4uco

genusistimelord commented 2 years ago

Just a heads up @apps4uco. I am making some API changes to introduce full fixes to async await. This will be adding in changes to how to initialize the manager and so forth. So I will merge this how it is to add it into the new changes.