# `HaAuth.KioskSignIn`
[🔗](https://github.com/drselump14/ha_auth/blob/v0.1.0/lib/ha_auth/kiosk_sign_in.ex#L1)

Sign-in without a button on Kiosk Satellite tablets.

Kiosk Satellite gives custom pages its HA connection
(`window.kioskSatellite.ha`, "Share Home Assistant connection" on) but
never the token. So the login page proves who it is through HA itself:
it calls the no-op `persistent_notification.dismiss` with
`notification_id: "ha_auth_sign_in_<nonce>"`, the nonce being in its
session. HA fires `call_service` with the caller's `context.user_id`;
`HaAuth.HA.Events` hands that to `dismissed/2`, and the `/auth/kiosk`
request picks it up with `await/2`.

The user id comes from HA, not the page, so a page can only sign in as
the HA user whose credential made the call. Entries live 60 seconds and
are taken once.

# `await`

The HA user id that confirmed `nonce`, waiting up to `timeout` ms.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `dismissed`

`user_id` dismissed notification `id`: a sign-in when it carries our prefix.

# `notification_prefix`

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
