fix: Actually Fix Token Time (#6215)

This commit is contained in:
Michael Genson
2025-09-21 19:51:19 -05:00
committed by GitHub
parent b27977fbdf
commit cec6d2c5ec
5 changed files with 48 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
import { defineNuxtConfig } from "nuxt/config";
const AUTH_TOKEN = "mealie.auth.token";
const AUTH_TOKEN = "mealie.access_token";
export default defineNuxtConfig({
// Global page headers: https://go.nuxtjs.dev/config-head
@@ -142,7 +142,6 @@ export default defineNuxtConfig({
signInResponseTokenPointer: "/access_token",
type: "Bearer",
cookieName: AUTH_TOKEN,
maxAgeInSeconds: parseInt(process.env.TOKEN_TIME || "48") * 3600, // TOKEN_TIME is in hours
},
pages: {
login: "/login",