Skip to content

apps/api/src/features/auth/auth.controller.ts ​

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

Purpose ​

Auth HTTP handlers. Response shapes match api-contracts.md §3 exactly: - SessionResponse { userId, role, status, sessionToken } - MeResponse UserProfile + { role, status, familyGroupId, credentialType } Sensitive columns (passwordHash, externalUserId, approvedById, internal timestamps) are NEVER returned to clients. /

Exports ​

  • export async function postSession
  • export async function deleteSession
  • export async function postChildSession
  • export async function getMe

Imports ​

  • ../../adapters/db
  • ../../config
  • ../../db/repositories/PostgresUserRepository
  • ../../lib/errors
  • ../../lib/response
  • ./auth.dto
  • ./auth.schema
  • ./auth.service
  • @clerk/backend
  • fastify

Imported by ​

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