fix: Make Frontend Respect TOKEN_TIME (#6089)

This commit is contained in:
Michael Genson 2025-09-03 00:56:54 -05:00 committed by GitHub
parent ff958a5015
commit bef3045e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ export default defineNuxtConfig({
signInResponseTokenPointer: "/access_token",
type: "Bearer",
cookieName: AUTH_TOKEN,
maxAgeInSeconds: 604800, // 7 days
maxAgeInSeconds: parseInt(process.env.TOKEN_TIME || "48") * 3600, // TOKEN_TIME is in hours
},
pages: {
login: "/login",