Move authentication functions

app no longer imports from cli
This commit is contained in:
Samuel Elliott
2022-05-21 23:47:41 +01:00
parent 7ca5b8466d
commit 5f6004bd57
64 changed files with 120 additions and 107 deletions

View File

@@ -1,8 +1,8 @@
import { contextBridge, ipcRenderer } from 'electron';
import { EventEmitter } from 'events';
import { WindowConfiguration } from '../common/types.js';
import { SavedToken } from '../../cli/nso/util.js';
import { SavedMoonToken } from '../../cli/pctl/util.js';
import { SavedToken } from '../../common/auth/nso.js';
import { SavedMoonToken } from '../../common/auth/moon.js';
const ipc = {
getWindowData: () => ipcRenderer.sendSync('nxapi:browser:getwindowdata') as WindowConfiguration,