Skip to main content

Module muxbus_presence

Module muxbus_presence 

Source
Expand description

Whether a channel has a MuxBus sign-in of its own stored, asked of the store alone.

A channel’s sign-in is a row in db_muxbus_credentials (channel:<ch>, or global in a store that is already the channel’s own) plus its tokens in the OS keychain under muxbus:channel:<ch>. The row is written when the sign-in completes and deleted when it ends. Both are keyed by the channel, not the version, so an in-app upgrade (the same channel, a new version) finds its predecessor’s sign-in. Reading the row touches no keychain, so boot can ask this before deciding whether a reconnect would read one.