Skip to main content

Module login_probe

Module login_probe 

Expand description

Channel-owned persisted-login probes for QR-pairing channels.

Answers “does this channel alias hold a persisted login/session on disk?” by delegating to the channel module that owns the state — the same signal each channel’s startup path uses to decide between resuming an existing session and starting a fresh QR pairing. Nothing is cached and nothing is written: every call resolves paths from the canonical Config and probes read-only.

The gateway consumes this from /api/channels to report readiness.authenticated. Keeping the probe here (rather than in the gateway) keeps session-state knowledge inside the owning channel, and keeps it out of the login lifecycle event payloads, which stay lifecycle-only.

Enums§

PersistedLogin
Result of a persisted-login probe for one channel alias.

Functions§

persisted_login
Probe the persisted login state for a channel alias.