Skip to content

Commit 7352d21

Browse files
committed
fix: update cookie SameSite attribute to 'lax'
1 parent 1242f6b commit 7352d21

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { $ } from "bun";
2+
await $`tsc`;
3+
await $`cp types/index.d.ts dist/index.d.ts`;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dist"
99
],
1010
"license": "WTFPL",
11-
"version": "1.0.1",
11+
"version": "1.0.2",
1212
"type": "module",
1313
"keywords": [
1414
"auth",

src/redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ export const handleRedirect = async (req: NextRequest) => {
5858
expiresIn: response.expiresIn,
5959
});
6060

61-
cookieStore.set("AUTH_SESSION", token, { sameSite: "strict", httpOnly: true, secure: true });
61+
cookieStore.set("AUTH_SESSION", token, { sameSite: "lax", httpOnly: true, secure: true });
6262
};

0 commit comments

Comments
 (0)