Add /lights/kiosk screen for the shared back-of-house kiosk
Big-touch tiles + group buttons + per-light schedule pause; own session check (never bounces a tablet to the staff login); backend accepts hnf_kiosk_session. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d33b2fe11d
commit
831b562ee2
5 changed files with 286 additions and 17 deletions
|
|
@ -5,7 +5,9 @@ const APP_SLUG = process.env.APP_SLUG || 'lights'
|
|||
const secret = new TextEncoder().encode(process.env.CENTRAL_AUTH_SECRET || '')
|
||||
|
||||
export async function requireAuth(request, reply) {
|
||||
const token = request.cookies?.hnf_session
|
||||
// hnf_kiosk_session is the shared back-of-house kiosk session minted by central
|
||||
// auth (portal /kiosk); its token carries only lights' registered kiosk caps.
|
||||
const token = request.cookies?.hnf_session || request.cookies?.hnf_kiosk_session
|
||||
if (!token) return reply.status(401).send({ error: 'Not authenticated' })
|
||||
|
||||
let payload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue