From 41f15558c865661c0bf5e9703ebe6f6d93425344 Mon Sep 17 00:00:00 2001 From: Julien Blatecky Date: Mon, 29 Apr 2024 18:16:23 +0200 Subject: [PATCH 1/2] Fix cookies maxAge in azure preset --- src/runtime/utils.azure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/utils.azure.ts b/src/runtime/utils.azure.ts index 014ed7421d..0aa5391b3f 100644 --- a/src/runtime/utils.azure.ts +++ b/src/runtime/utils.azure.ts @@ -30,7 +30,7 @@ export function getAzureParsedCookiesFromHeaders( path: setCookieOptions.path, expires: parseNumberOrDate(setCookieOptions.expires), sameSite: setCookieOptions.samesite as "Lax" | "Strict" | "None", - maxAge: parseNumber(setCookieOptions.maxAge), + maxAge: parseNumber(setCookieOptions.maxage), secure: setCookieStr.includes("Secure") ? true : undefined, httpOnly: setCookieStr.includes("HttpOnly") ? true : undefined, }; From 84b7ef7180e2943745dfbdd8390d7bc8fd7e59dd Mon Sep 17 00:00:00 2001 From: Julien Blatecky Date: Mon, 29 Apr 2024 23:31:21 +0200 Subject: [PATCH 2/2] Update utils.azure.ts --- src/runtime/utils.azure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/utils.azure.ts b/src/runtime/utils.azure.ts index 0aa5391b3f..3bd770c9b4 100644 --- a/src/runtime/utils.azure.ts +++ b/src/runtime/utils.azure.ts @@ -30,7 +30,7 @@ export function getAzureParsedCookiesFromHeaders( path: setCookieOptions.path, expires: parseNumberOrDate(setCookieOptions.expires), sameSite: setCookieOptions.samesite as "Lax" | "Strict" | "None", - maxAge: parseNumber(setCookieOptions.maxage), + maxAge: parseNumber(setCookieOptions["max-age"]), secure: setCookieStr.includes("Secure") ? true : undefined, httpOnly: setCookieStr.includes("HttpOnly") ? true : undefined, };