File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/main/auth-social-network Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " electron-gp" ,
33 "private" : true ,
4- "version" : " 1.4.0 " ,
4+ "version" : " 1.4.1 " ,
55 "type" : " module" ,
66 "main" : " dist-main/app.js" ,
77 "author" : " traeop" ,
Original file line number Diff line number Diff line change 1- import { session } from "electron" ;
21import { restApi } from "../config.js" ;
32import { IpcHandler , type TParamOnInit } from "@devisfuture/electron-modular" ;
43import { ipcMainOn } from "../$shared/utils.js" ;
@@ -9,14 +8,13 @@ export class AuthSocialNetworkIpc {
98
109 onInit ( { getWindow } : TParamOnInit < TWindows [ "authSocialNetwork" ] > ) : void {
1110 const authSocialNetworkWindow = getWindow ( "window:auth-social-network" ) ;
12- const authSession = session . fromPartition ( "persist:auth" ) ;
1311
1412 ipcMainOn ( "authSocialNetwork" , async ( _ , { providers } ) => {
1513 authSocialNetworkWindow . create ( {
1614 loadURL : `${ restApi . urls . base } ${ restApi . urls . baseApi } ${ restApi . urls . auth . base } ${ restApi . urls . auth [ providers ] } ` ,
1715 options : {
1816 webPreferences : {
19- session : authSession ,
17+ partition : "persist:auth" ,
2018 } ,
2119 } ,
2220 } ) ;
You can’t perform that action at this time.
0 commit comments