export const sessionStorage = createCookieSessionStorage({
cookie: {
name: "_sess", // use any name you want here
sameSite: "lax", // this helps with CSRF
path: "/", // remember to add this so the cookie will work in all routes
httpOnly: true, // for security reasons, make this cookie http only
secrets: ["mysecret"],
secure: process.env.NODE_ENV === "production", // enable this in prod only
maxAge: 60 * 60 * 24 * 30, // 30 days
},
});
Blank white screen on Windows Chrome after login with text
Missing State on Sessionmessage and doesn't login. Anybody have any ideas? My session storage looks like: