Skip to main content

src/services/CloudService

Renderer service layer for cloud provider operations (remote backup + sync).

Remarksโ€‹

This service is the only renderer-facing module that should directly invoke the preload bridge cloud domain. UI components must call this service (or store operations built on top of it) rather than accessing the raw Electron preload bridge directly.

The initial implementation supports a filesystem-backed provider owned by Electron main as well as first-class Dropbox and Google Drive providers.

  • Dropbox uses OAuth 2.0 Authorization Code + PKCE and runs entirely in Electron main (system browser + loopback redirect). No OAuth tokens are ever exposed to the renderer.
  • Filesystem allows users to point Uptime Watcher at an existing synced folder (Dropbox/Google Drive/etc.) without embedding OAuth flows.

Interfacesโ€‹

Variablesโ€‹