Skip to content

apps/web/src/pages/ChildSignInPage.tsx ​

Auto-generated by scripts/generate-file-docs.ts. Do not edit — overwritten on every run.

Purpose ​

ChildSignInPage (A4 — child path) — parent-managed child account sign-in. Children have no Apple/Google account. They authenticate with a parent-assigned username and PIN via POST /api/v1/auth/child-session, which verifies the Argon2id credential server-side and returns a platform-signed JWT (auth-rbac-design §Child authentication). On success the platform JWT is stored in sessionStorage and the user is routed to /app/home. The JWT is sent as the Authorization Bearer token on all subsequent API calls. AB#3713 /

Exports ​

  • export const CHILD_SESSION_KEY
  • export default function ChildSignInPage(): JSX.Element {...}

Imports ​

  • ../lib/api
  • @hch/ui
  • @tanstack/react-query
  • react
  • react-router-dom

Imported by ​

(not referenced in graph, or graph not yet generated)

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.