fix: Make Frontend Respect TOKEN_TIME (#6089)
This commit is contained in:
1 parent
ff958a5015
commit
bef3045e65
1 file changed
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user