feat(auth): Sitzungen laufen standardmaessig 7 Tage

JWT_EXPIRES_IN faellt ohne Eintrag in .env jetzt auf 7d statt 12h zurueck.
Doku und .env.example angepasst.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sascha Wolf
2026-09-23 22:05:24 +02:00
co-authored by Claude Opus 5.5
parent 59b962d66b
commit e2ad8ab03e
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function secret() {
export function signToken(user) {
return jwt.sign({ sub: user.id, role: user.role }, secret(), {
expiresIn: process.env.JWT_EXPIRES_IN || '12h',
expiresIn: process.env.JWT_EXPIRES_IN || '7d',
});
}