2a3905d2eaab739bff699cb3675605e71ac6edc3
Portal Book New submissions returned 401 when a customer lingered in the multi-step wizard. SSO-bridge portal sessions (POST /api/portal/session-from-auth) are now minted with a 30-min idle TTL and slid forward on each authenticated /api/portal/* request, bounded by an 8h absolute cap from startedAt. - portalSession.ts: validatePortalSession extends expiresAt to now+30m for reason="sso-bridge" sessions only (staff-initiated impersonation untouched), capped at startedAt+8h; write skipped below a 60s slide threshold. - portal.ts: session-from-auth mint TTL aligned to the 30-min idle window (matches the staff-console impersonation idle model). dev-session unchanged. - Tests: sliding extends, stays valid past original window, bounded by max lifetime, no-slide for staff sessions, no resurrection of expired sessions. - UAT_PLAYBOOK.md §4.8: TC-API-8.17/8.18 (slide-on-activity, slow-wizard submit). Co-Authored-By: Paperclip <noreply@paperclip.ing>
GroomBook API
GroomBook API service — extracted from the groombook/app monorepo.
Overview
This repository contains the GroomBook API service, including:
- REST API endpoints
- Database schema and migrations (via Drizzle ORM)
- Authentication (via Better Auth)
- Background job handlers
Structure
src/ # API service source
packages/db/ # Database schema, migrations, and utilities
packages/types/ # Shared TypeScript types
Setup
pnpm install
cp .env.example .env # Fill in required environment variables
pnpm --filter @groombook/api dev
Docker
docker build -t ghcr.io/groombook/api:latest .
docker run -p 3000:3000 ghcr.io/groombook/api:latest
License
AGPL-3.0-only
Description
Languages
TypeScript
99.3%
JavaScript
0.4%
Dockerfile
0.2%