QR sign-in. The login page holds a code (in its session) and shows
/pair/<code> as a QR code; a signed-in phone opens it and approves,
which hands the phone's user to that page. Codes live 10 minutes, are
approved once and taken once. Approval is broadcast on topic/1, so the
waiting page moves on at once.
Summary
Functions
user (from the phone's session) signs in the page holding code.
Returns a specification to start this module under a supervisor.
A new pending code.
Is code waiting for a phone?
The user who approved code, once; :error if not approved or expired.
Functions
user (from the phone's session) signs in the page holding code.
Returns a specification to start this module under a supervisor.
See Supervisor.
A new pending code.
Is code waiting for a phone?
The user who approved code, once; :error if not approved or expired.