mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-02 22:26:57 -05:00
Try including domain in session cookie
This commit is contained in:
parent
501b858cad
commit
1394608e01
|
|
@ -8,8 +8,11 @@ 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",
|
||||
sameSite: "lax",
|
||||
// need to specify domain so that sub-domains can access it
|
||||
domain: process.env.NODE_ENV === "production" ? "sendou.ink" : undefined,
|
||||
path: "/",
|
||||
httpOnly: true,
|
||||
secrets: [process.env["SESSION_SECRET"] ?? "secret"],
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user