1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

update simple-auth example

This commit is contained in:
Nikolay Kim 2019-04-21 09:37:29 -07:00
parent 1f2d4ed54f
commit 3058f53bac

View File

@ -65,7 +65,7 @@ fn main() -> std::io::Result<()> {
.name("auth") .name("auth")
.path("/") .path("/")
.domain(domain.as_str()) .domain(domain.as_str())
.max_age(Duration::days(1)) .max_age_time(Duration::days(1))
.secure(false), // this can only be true if you have https .secure(false), // this can only be true if you have https
)) ))
// everything under '/api/' route // everything under '/api/' route