Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Persist login sessions for one year.
nzbdav-dev6c8da4cf591d
diff --git a/frontend/app/auth/authentication.server.ts b/frontend/app/auth/authentication.server.tsindex 1395a571..bfb5f5ae 100644--- a/frontend/app/auth/authentication.server.ts+++ b/frontend/app/auth/authentication.server.ts@@ -6,6 +6,7 @@ type User = {username: string;};+const oneYear = 60 * 60 * 24 * 365; // secondsexport const sessionStorage = createCookieSessionStorage({cookie: {name: "__session",@@ -14,6 +15,7 @@ export const sessionStorage = createCookieSessionStorage({sameSite: "strict",secrets: [process?.env?.SESSION_KEY || crypto.randomBytes(64).toString('hex')],secure: ["true", "yes"].includes(process?.env?.SECURE_COOKIES || ""),+ maxAge: oneYear,},});