Skip to content

Commit

Permalink
fix(azure): correctly handle maxAge cookie option (#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien1619 authored Apr 29, 2024
1 parent ec98b24 commit 1e506ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/utils.azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 1e506ac

Please sign in to comment.