feat: add session expiry (#951)

This commit is contained in:
Meier Lukas authored and GitHub committed 2024-08-09 15:59:00 +02:00
1 parent 25452ff063
commit 6dafbaae48
7 files changed
+56 -9

No files matched your search

-1
View File
@@ -5,7 +5,6 @@ import type { Database } from "@homarr/db";
import { getCurrentUserPermissionsAsync } from "./callbacks";
export const sessionMaxAgeInSeconds = 30 * 24 * 60 * 60; // 30 days
export const sessionTokenCookieName = "next-auth.session-token";
export const expireDateAfter = (seconds: number) => {