aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/basicAuth/mainIpcHandler.ts
blob: d9cedc9748f851b0a9730b32e704a6824190abd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { BrowserWindow } from 'electron';

const debug = require('../../preload-safe-debug')(
  'Ferdium:feature:basicAuth:main',
);

export default function mainIpcHandler(mainWindow: BrowserWindow, authInfo) {
  debug('Sending basic auth call', authInfo);

  mainWindow.webContents.send('feature:basic-auth', {
    authInfo,
  });
}