HaAuth.Web.LoginLive (ha_auth v0.1.0)

Copy Markdown View Source

The login page, with all three ways in:

  1. Kiosk Satellite: an inline script calls the kiosk's shared HA connection when it exists, then goes to /auth/kiosk
  2. A QR code for /pair/<code>; when a phone approves it the page goes to /auth/pair/finish. It reloads for a new code when this one expires
  3. The "Sign in with Home Assistant" link

The QR code and kiosk nonce come from this browser's session (HaAuth.Plug, :login_codes). The kiosk try is skipped right after a failed sign-in, so a misconfigured kiosk doesn't loop.