The first public release of Fabled Minstrel #158

Merged
bvandeusen merged 256 commits from dev into main 2026-12-03 21:41:58 -05:00
Showing only changes of commit 02cecc4eb7 - Show all commits
+4 -3
View File
@@ -14,9 +14,10 @@ import (
"git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq" "git.fabledsword.com/bvandeusen/minstrel/internal/db/dbq"
) )
// sessionCookieMaxAge is the cookie lifetime. Sessions don't auto-expire // sessionCookieMaxAge is the cookie lifetime, matching the server's idle
// server-side yet (future work); the cookie still caps browser-side lifetime // limit: a session unused for 30 days, or a year old, no longer signs anyone
// so an abandoned laptop doesn't stay logged in forever. // in (GetSessionByTokenHash), and the browser drops the cookie on the same
// idle clock.
const sessionCookieMaxAge = 30 * 24 * time.Hour const sessionCookieMaxAge = 30 * 24 * time.Hour
// Limits on the unauthenticated auth routes other than login (which uses // Limits on the unauthenticated auth routes other than login (which uses