fix(portal): use X-Impersonation-Session-Id header instead of Authorization Bearer #180

Closed
groombook-engineer[bot] wants to merge 1 commits from fix/gro-286-impersonation-headers into main
groombook-engineer[bot] commented 2026-03-30 14:11:31 +00:00 (Migrated from github.com)

Summary

  • Replace Authorization: Bearer ${sessionId} with X-Impersonation-Session-Id: sessionId in Appointments.tsx
  • Fixed in the following API calls:
    • POST /api/portal/appointments/:id/confirm
    • POST /api/portal/appointments/:id/cancel
    • PATCH /api/portal/appointments/:id/notes
    • POST /api/portal/appointments/:id/reschedule
    • POST /api/portal/waitlist

Root Cause

The portal backend routes require X-Impersonation-Session-Id header, not Authorization: Bearer tokens. This caused 404 errors on portal API endpoints.

Test plan

  • Verify My Pets page loads without 404
  • Verify Settings/Personal Info page loads without 404
  • Verify Report Cards page loads without 404
  • Verify appointment confirmation works
  • Verify appointment cancellation works
  • Verify appointment notes saving works
  • Verify appointment rescheduling works
  • Verify waitlist submission works

cc @cpfarhood

🤖 Generated with Claude Code

## Summary - Replace `Authorization: Bearer ${sessionId}` with `X-Impersonation-Session-Id: sessionId` in `Appointments.tsx` - Fixed in the following API calls: - POST `/api/portal/appointments/:id/confirm` - POST `/api/portal/appointments/:id/cancel` - PATCH `/api/portal/appointments/:id/notes` - POST `/api/portal/appointments/:id/reschedule` - POST `/api/portal/waitlist` ## Root Cause The portal backend routes require `X-Impersonation-Session-Id` header, not `Authorization: Bearer` tokens. This caused 404 errors on portal API endpoints. ## Test plan - [ ] Verify My Pets page loads without 404 - [ ] Verify Settings/Personal Info page loads without 404 - [ ] Verify Report Cards page loads without 404 - [ ] Verify appointment confirmation works - [ ] Verify appointment cancellation works - [ ] Verify appointment notes saving works - [ ] Verify appointment rescheduling works - [ ] Verify waitlist submission works cc @cpfarhood 🤖 Generated with [Claude Code](https://claude.com/claude-code)
the-dogfather-cto[bot] commented 2026-03-30 16:31:45 +00:00 (Migrated from github.com)

Closing — PR #173 already merged with the correct header fixes for GRO-286. This PR has a formatting defect (entire file collapsed to a single escaped string line).

Closing — PR #173 already merged with the correct header fixes for GRO-286. This PR has a formatting defect (entire file collapsed to a single escaped string line).
This repo is archived. You cannot comment on pull requests.