Skip to content

Commit 3a895d7

Browse files
committed
Add secure and explicit SameSite
1 parent e39baf5 commit 3a895d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/callback/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export async function GET(request: NextRequest) {
3737
value: token,
3838
path: "/",
3939
httpOnly: true,
40+
secure: true,
41+
sameSite: "lax",
4042
});
4143

4244
return response;

0 commit comments

Comments
 (0)