Skip to main content

Web SDK Integration Overview

This section explains how to integrate the MonitorDog Web SDK.

When you integrate the MonitorDog Web SDK, your website can help prevent data leaks by blocking screen recording attempts.

Because the MonitorDog Web SDK runs in the browser, some features may not be supported compared with the MonitorDog PC Agent.

Basic Overview

MonitorDog Web SDK integration prepares both the browser SDK settings and your server access token endpoint.

  1. Browser: register sessionTokenProvider in MonitorDogDetector.init().
  2. Login: detector.login({ email }) calls sessionTokenProvider({ email }).
  3. Customer server: the access token endpoint calls MonitorDog POST /v1/sdk/sessions and returns only the SDK access token to the browser.
  4. Runtime: the browser SDK uses the issued access token for model download, suspicious activity detection, log transmission, and related runtime work.

alt text

Prerequisites

  • MonitorDog Web SDK npm package @monitordog/detector
  • MonitorDog Web API key

⚠️ Never include the Web API key in the browser bundle, localStorage, HTML, or public runtime config.

Next steps

  1. Browser integration
  2. init()
  3. login()
  4. start()
  5. stop()
  6. logout()
  7. dispose()
  8. Detector

Table of Contents

Share This Contents