diff --git a/server/src/infra/auth_service.rs b/server/src/infra/auth_service.rs index 98311d9..6843c20 100644 --- a/server/src/infra/auth_service.rs +++ b/server/src/infra/auth_service.rs @@ -101,7 +101,7 @@ where .cookie( Cookie::build("token", token.as_str()) .max_age(1.days()) - .path("/api") + .path("/") .http_only(true) .same_site(SameSite::Strict) .finish(), @@ -148,7 +148,7 @@ where .cookie( Cookie::build("token", "") .max_age(0.days()) - .path("/api") + .path("/") .http_only(true) .same_site(SameSite::Strict) .finish(), @@ -203,7 +203,7 @@ where .cookie( Cookie::build("token", token.as_str()) .max_age(1.days()) - .path("/api") + .path("/") .http_only(true) .same_site(SameSite::Strict) .finish(),