fix: try not setting path on access token
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
Radical 2025-07-19 23:20:16 +02:00
parent 252b9a3dc6
commit d2fec66ddb
4 changed files with 4 additions and 5 deletions

View file

@ -43,12 +43,11 @@ pub fn new_refresh_token_cookie(config: &Config, refresh_token: String) -> Cooki
.build()
}
pub fn new_access_token_cookie(config: &Config, access_token: String) -> Cookie {
pub fn new_access_token_cookie<'cookie>(access_token: String) -> Cookie<'cookie> {
Cookie::build(("access_token", access_token))
.http_only(false)
.secure(true)
.same_site(SameSite::None)
.path(config.web.backend_url.path().to_string())
.max_age(Duration::hours(1))
.build()
}