Skip to main content

Module pairing

Module pairing 

Source
Expand description

Relaying pairing messages. See edda_auth::pairing for the protocol.

Messages are kept in Postgres and fetched by long polling, so the two sides may be talking to different instances. The relay enforces what it can without knowing the code: only the DM device that opened a pairing can speak for the host or cancel it, and only one device can ever speak as the joiner, so an attacker gets a single guess per code.

Functionsยง

router
The pairing routes, the message relay limited like signing in.