Add SameSite to auth cookie.

This commit is contained in:
Mike Cao 2020-08-20 10:34:02 -07:00
parent d95e149cf6
commit 343e59e6ff
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ export default async (req, res) => {
const cookie = serialize(AUTH_COOKIE_NAME, token, {
path: '/',
httpOnly: true,
sameSite: true,
maxAge: 60 * 60 * 24 * 365,
});