fix: use .append() and not Set-Cookie2
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

web dev is too confusing..
This commit is contained in:
Radical 2025-07-19 19:10:36 +02:00
parent d67a7ce0ca
commit 2fbf41ba8c
4 changed files with 14 additions and 22 deletions

View file

@ -95,15 +95,15 @@ pub async fn response(
let mut response = StatusCode::OK.into_response();
response.headers_mut().insert(
response.headers_mut().append(
"Set-Cookie",
HeaderValue::from_str(
&new_refresh_token_cookie(&app_state.config, refresh_token).to_string(),
)?,
);
response.headers_mut().insert(
"Set-Cookie2",
response.headers_mut().append(
"Set-Cookie",
HeaderValue::from_str(
&new_access_token_cookie(&app_state.config, access_token).to_string(),
)?,