aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/basicAuth/mainIpcHandler.ts
blob: d4665774802cf68536175f1b4f62c86b111c039a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import type { 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,
  });
}