Skip to content

Commit

Permalink
fix(azure): correctly handle maxAge cookie option (nitrojs#2400)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien1619 authored and pi0 committed Apr 29, 2024
1 parent 827b36d commit 7221784
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 7221784

Please sign in to comment.