Change session cookie name

This commit is contained in:
Kalle 2023-09-26 23:59:51 +03:00
parent cf19bc7054
commit 3412597fd9

View File

@ -8,8 +8,7 @@ if (process.env.NODE_ENV === "production") {
}
export const authSessionStorage = createCookieSessionStorage({
cookie: {
// xxx: if domain trick works this needs renaming to force people to log back in
name: "_session",
name: "__session",
sameSite: "lax",
// need to specify domain so that sub-domains can access it
domain: process.env.NODE_ENV === "production" ? "sendou.ink" : undefined,