Electron, the framework Spencer Desktop leverages, stores the user's files in the Per-user application data directory, which points to:

  • %APPDATA%\Spencer on Windows
  • ~/Library/Application Support/Spencer on macOS

As long as these are persisted, the user's state will maintained. Eg. normal token refreshes will remain and keep the user logged in as long as the configuration allows it.