feat: remove cookies based token

This commit is contained in:
Kilerd Chan 2019-06-03 16:36:09 +08:00
parent f7b106fdc3
commit df5eed59d1

View File

@ -64,12 +64,6 @@ fn main() {
.wrap(Logger::default())
.wrap(Cors::default())
.wrap(NormalizePath)
.wrap(IdentityService::new(
CookieIdentityPolicy::new(&RANDOM_TOKEN_KEY)
.name("auth-cookie")
.secure(false)
.max_age_time(Duration::days(3)),
))
.service(routers::routes())
})
.bind(("0.0.0.0", 8000))