feat: remove cookies based token
This commit is contained in:
parent
f7b106fdc3
commit
df5eed59d1
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user