Add sameSite attribute for auth cookies

This commit is contained in:
Tom Moor
2022-09-24 21:46:25 -04:00
parent 61a8230b47
commit 89a133ea59
2 changed files with 3 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ router.get("/redirect", auth(), async (ctx) => {
ctx.cookies.set("accessToken", jwtToken, {
httpOnly: false,
sameSite: true,
expires: addMonths(new Date(), 3),
});
const [team, collection, view] = await Promise.all([