fix: try not setting path on access token
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
252b9a3dc6
commit
d2fec66ddb
4 changed files with 4 additions and 5 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue