Kinocast
A streaming app for a TV: the screen shows a code, the viewer approves it on a phone, and the owner can remove a device from the sofa.
ApplicationPlanned
This example is planned. Not built yet. This page is the specification for the example.
Scenario
A TV has a remote and no keyboard. The app shows a short code and an address. The viewer opens the address on a phone and signs in with Google. The TV stays signed in for months. When the owner of the household removes the TV, it is signed out within seconds.
People and agents
| Who | Role in the application | Identity in LumoAuth |
|---|---|---|
| Household owner | Pays, and manages devices. | A user. The owner of a household. |
| Family member | Watches. | A user. A member of the household. |
| TV | Plays. | A public application that uses the device grant. |
Flows
| Flow | What happens | What LumoAuth does |
|---|---|---|
| Code | The TV asks for a code and shows it. | Issues a device code and a user code. |
| Approve | The viewer signs in on a phone. | The hosted activation page, with social sign-in. |
| Play | The TV polls and receives tokens. | Refresh tokens that rotate keep the TV signed in. |
| Profiles | A family member picks a profile. | A relationship: member of the household, viewer of the profile. |
| Remove | The owner removes the TV. | Ends the session. A back-channel logout reaches the streaming API. |
Parts
| Part | Built with | Job |
|---|---|---|
| TV app | React, @lumoauth/client | The code screen and the player. |
| API | Express | Streams, households, and the logout receiver. |
What the seed script creates
- An application with the device grant.
- One social provider.
- A namespace for households and profiles.
Walkthrough
- Open the TV app in one window and the phone page in another.
- Type the code.
- Remove the device from the account page.