loginTokenName
This commit is contained in:
parent
8219606297
commit
0e2698569a
4
app.ts
4
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)=> `<!DOCTYPE html>
|
||||
<html lang="ko"><head>
|
||||
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user