Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ipcMain.on('sign-out', (event, userId) => {
userInfo.userId = null;
Sentry.setUserContext();
if (trackCapturesWindow) {
trackCapturesWindow.webContents.send('sign-out');
}
stopCapture();
});