Skip to content

Commit

Permalink
Allow SameSite=None session cookies (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Jan 27, 2024
1 parent 31dfa7d commit 86ce437
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .auri/$6cnv96d7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
package: "lucia" # package name
type: "patch" # "major", "minor", "patch"
---

Allow `SameSite=None` session cookies
2 changes: 1 addition & 1 deletion documentation/content/main/basics/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const sessionCookie: {
};

type SessionCookieAttributes = {
sameSite?: "lax" | "strict"; // default: "lax"
sameSite?: "lax" | "strict" | "none"; // default: "lax"
path?: string; // default "/""
domain?: string; // default: undefined
};
Expand Down
2 changes: 1 addition & 1 deletion packages/lucia/src/auth/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { CookieAttributes } from "../utils/cookie.js";
export const DEFAULT_SESSION_COOKIE_NAME = "auth_session";

type SessionCookieAttributes = {
sameSite?: "strict" | "lax";
sameSite?: "strict" | "lax" | "none";
path?: string;
domain?: string;
};
Expand Down

0 comments on commit 86ce437

Please sign in to comment.