Skip to content

Commit

Permalink
Add SameSite=None option (#1546)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Apr 24, 2024
1 parent a84e63e commit 20793d6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .auri/$e3mj84c4.md → .auri/$49d0lzfc.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package: "lucia" # package name
type: "patch" # "major", "minor", "patch"
---

Fix `LegacyScrypt` generating malformed hash (see PR for fix)
Fix `options.sessionCookie` parameter type in `Lucia`
2 changes: 1 addition & 1 deletion docs/pages/reference/main/Lucia/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function constructor<
name?: string;
expires?: boolean;
attributes: {
sameSite?: "lax" | "strict";
sameSite?: "lax" | "strict" | "none";
domain?: string;
path?: string;
secure?: boolean;
Expand Down
7 changes: 2 additions & 5 deletions docs/pages/tutorials/github-oauth/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,9 @@ Initialize the GitHub provider with the client ID and secret.
// src/lib/server/auth.ts
// ...
import { GitHub } from "arctic";
import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from '$env/static/private';
import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from "$env/static/private";

export const github = new GitHub(
GITHUB_CLIENT_ID,
GITHUB_CLIENT_SECRET
);
export const github = new GitHub(GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET);
```

## Sign in page
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-postgresql/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 3.1.2

- Update peer dependencies.
- Update peer dependencies.

## 3.1.1

Expand Down
2 changes: 1 addition & 1 deletion packages/lucia/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export interface SessionCookieOptions {
}

export interface SessionCookieAttributesOptions {
sameSite?: "lax" | "strict";
sameSite?: "lax" | "strict" | "none";
domain?: string;
path?: string;
secure?: boolean;
Expand Down

0 comments on commit 20793d6

Please sign in to comment.