How to use the @sentry/electron.setUserContext function in @sentry/electron

To help you get started, we’ve selected a few @sentry/electron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pursuit-gg / pursuit-client / electron-start.js View on Github external
ipcMain.on('sign-out', (event, userId) => {
  userInfo.userId = null;
  Sentry.setUserContext();
  if (trackCapturesWindow) {
    trackCapturesWindow.webContents.send('sign-out');
  }
  stopCapture();
});