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

const debug = require('debug')('Ferdi:feature:basicAuth:main');

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

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