diff --git a/app.ts b/app.ts index 5e1e29d..76baa6b 100644 --- a/app.ts +++ b/app.ts @@ -1,7 +1,7 @@ import { app, BrowserWindow, session } from "electron"; import { get_setting } from "./src/setting"; import { create_server, start_server } from "./src/server"; -import { getAdminCookieValue } from "./src/login"; +import { getAdminCookieValue, loginTokenName } from "./src/login"; const get_loading_html = (content?:string)=> ` @@ -49,7 +49,7 @@ if (!setting.cli) { await window.loadURL(`data:text/html;base64,`+Buffer.from(get_loading_html()).toString('base64')); await session.defaultSession.cookies.set({ url:`http://localhost:${setting.port}`, - name:"access_token", + name:loginTokenName, value:getAdminCookieValue(), httpOnly: true, secure: false,